161 lines
6.4 KiB
XML
161 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/gray_bg"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="220dp"
|
|
android:background="@drawable/ic_user_center_bg"
|
|
android:padding="20dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_user_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="15dp"
|
|
android:background="@drawable/ic_user_default" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_user_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:drawablePadding="5dp"
|
|
android:gravity="center"
|
|
android:textColor="#ffffffff"
|
|
android:textSize="18sp"
|
|
tools:text="王丽霞" />
|
|
</RelativeLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_functions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="170dp"
|
|
android:layout_marginRight="20dp"
|
|
android:background="@drawable/shp_rectangle_gray"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_change_pwd"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:background="@drawable/sel_rectangle_btn_white_gray"
|
|
android:orientation="horizontal"
|
|
android:padding="14dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:drawableLeft="@drawable/ic_pwd_cir"
|
|
android:drawableRight="@drawable/ic_arrow_cir"
|
|
android:drawablePadding="10dp"
|
|
android:text="修改密码"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@color/gray_bg" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_clear_cache"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:background="@drawable/sel_rectangle_btn_white_gray"
|
|
android:orientation="horizontal"
|
|
android:padding="14dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableLeft="@drawable/ic_clear_cache"
|
|
android:drawablePadding="10dp"
|
|
android:text="清除缓存"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_cache_num"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="3dp"
|
|
android:textColor="@color/text_80_gray"
|
|
tools:text="10MB" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@color/gray_bg" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_check_version"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:background="@drawable/sel_rectangle_btn_white_gray"
|
|
android:orientation="horizontal"
|
|
android:padding="14dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableLeft="@drawable/ic_check_versionl"
|
|
android:drawablePadding="10dp"
|
|
android:text="版本更新"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_version_num"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="3dp"
|
|
android:textColor="@color/text_80_gray"
|
|
tools:text="v1.0.1" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btn_login_out"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/ll_functions"
|
|
android:layout_margin="30dp"
|
|
android:background="@drawable/sel_btn_submit"
|
|
android:text="退出登录"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
</RelativeLayout>
|
|
</androidx.core.widget.NestedScrollView> |