<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:background="#F5F5F5">
|
|
<RelativeLayout
|
android:id="@+id/header_layout"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dimen_title_height"
|
android:background="@color/bottom_color"
|
android:elevation="4dp">
|
|
<TextView
|
android:id="@+id/titleBar"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:text="我的"
|
android:textColor="@color/white"
|
android:textSize="@dimen/title_text_size"
|
android:textStyle="bold" />
|
</RelativeLayout>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:fillViewport="true">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<!-- 用户信息卡片 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp"
|
app:contentPadding="16dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="基本信息"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:textStyle="bold"
|
android:layout_marginBottom="12dp"/>
|
|
<LinearLayout
|
android:id="@+id/my_village"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:visibility="gone"
|
android:layout_marginBottom="8dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设备编号:"
|
android:textSize="@dimen/text_size"
|
android:textColor="#666666" />
|
|
<TextView
|
android:id="@+id/my_villageNum"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textSize="@dimen/text_size"
|
android:textColor="#333333" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="8dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="区域名称:"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/my_adName"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/my_admin"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="8dp"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="区域号:"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/my_adminName"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/my_waterPriceLL"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="电单价(元/度):"
|
android:textColor="#666666"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/my_waterPrice"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
</LinearLayout>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<!-- 记录管理卡片 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp"
|
app:contentPadding="16dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="记录管理"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:textStyle="bold"
|
android:layout_marginBottom="12dp"/>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:padding="8dp"
|
android:background="#F9F9F9">
|
|
<ImageView
|
android:id="@+id/card_icon"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_centerVertical="true"
|
android:src="@android:drawable/ic_menu_agenda"
|
android:tint="#666666" />
|
|
<TextView
|
android:id="@+id/my_newCardList_ll"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="8dp"
|
android:layout_toEndOf="@+id/card_icon"
|
android:layout_toStartOf="@+id/my_newCardOut"
|
android:text="开卡记录"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/my_newCardOut"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:background="@drawable/rounded_button_bg"
|
android:paddingStart="12dp"
|
android:paddingEnd="12dp"
|
android:paddingTop="4dp"
|
android:paddingBottom="4dp"
|
android:text="导出记录"
|
android:textColor="@color/white"
|
android:textSize="12sp" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:padding="8dp"
|
android:background="#F9F9F9">
|
|
<ImageView
|
android:id="@+id/recharge_icon"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_centerVertical="true"
|
android:src="@android:drawable/ic_menu_recent_history"
|
android:tint="#666666" />
|
|
<TextView
|
android:id="@+id/my_rechargeList_ll"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="8dp"
|
android:layout_toEndOf="@+id/recharge_icon"
|
android:layout_toStartOf="@+id/my_rechargeOut"
|
android:text="充值记录"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size" />
|
|
<TextView
|
android:id="@+id/my_rechargeOut"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:background="@drawable/rounded_button_bg"
|
android:paddingStart="12dp"
|
android:paddingEnd="12dp"
|
android:paddingTop="4dp"
|
android:paddingBottom="4dp"
|
android:text="导出记录"
|
android:textColor="@color/white"
|
android:textSize="12sp" />
|
</RelativeLayout>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<!-- 设置卡片 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp"
|
app:contentPadding="16dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="系统设置"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:textStyle="bold"
|
android:layout_marginBottom="12dp"/>
|
|
<TextView
|
android:id="@+id/sys_ip"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:background="#F9F9F9"
|
android:padding="12dp"
|
android:drawableStart="@android:drawable/ic_menu_manage"
|
android:drawablePadding="8dp"
|
android:drawableTint="#666666"
|
android:text="IP设置"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size"
|
android:visibility="gone" />
|
|
<TextView
|
android:id="@+id/card_replacement"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:background="#F9F9F9"
|
android:padding="12dp"
|
android:drawableStart="@android:drawable/ic_menu_edit"
|
android:drawablePadding="8dp"
|
android:drawableTint="#666666"
|
android:text="用户补卡"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size"
|
android:visibility="gone" />
|
|
<TextView
|
android:id="@+id/my_psw"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:background="#F9F9F9"
|
android:padding="12dp"
|
android:drawableStart="@android:drawable/ic_lock_lock"
|
android:drawablePadding="8dp"
|
android:drawableTint="#666666"
|
android:text="登录密码设置"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size"
|
android:visibility="gone" />
|
|
<TextView
|
android:id="@+id/my_testConnect"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="#F9F9F9"
|
android:padding="12dp"
|
android:drawableStart="@android:drawable/ic_menu_compass"
|
android:drawablePadding="8dp"
|
android:drawableTint="#666666"
|
android:text="未连接数据中心"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size"
|
android:visibility="gone" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
</ScrollView>
|
|
<com.wang.avi.AVLoadingIndicatorView
|
android:id="@+id/avi"
|
style="@style/AVLoadingIndicatorView"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:layout_centerHorizontal="true"
|
android:layout_centerVertical="true"
|
android:visibility="gone"
|
app:indicatorColor="@color/title_bg"
|
app:indicatorName="BallClipRotatePulseIndicator" />
|
|
</LinearLayout>
|