|
@@ -0,0 +1,303 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="viewModel"
|
|
|
+ type="com.sjkj.appthreefloor_tsgz.fragment.viewModel.MineViewModel" />
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/icon_my">
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:id="@+id/scrollView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fillViewport="true"
|
|
|
+ android:overScrollMode="never">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="我的"
|
|
|
+ android:textColor="#FFF"
|
|
|
+ android:textSize="17dp"
|
|
|
+ android:visibility="visible" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="140dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="40dp"
|
|
|
+ android:layout_toLeftOf="@+id/fl_head"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginLeft="25dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="@{viewModel.nickname}"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginLeft="25dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="top"
|
|
|
+ android:text='@{"手机号码:"+viewModel.phone}'
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="14dp">
|
|
|
+
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fl_head"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
+ android:layout_marginBottom="30dp">
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_head"
|
|
|
+ android:layout_width="65dp"
|
|
|
+ android:layout_height="65dp"
|
|
|
+ android:background="@drawable/icon_head" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_sex"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom|right"
|
|
|
+ android:background="@drawable/icon_sex01" />
|
|
|
+ </FrameLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/my_msg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="54dp"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:background="@drawable/shape_common_corners_10dp"
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginRight="25dp"
|
|
|
+ android:text="@{viewModel.deptName}"
|
|
|
+ android:textColor="#979797"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="25dp"
|
|
|
+ android:background="@drawable/icon_bumen" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@+id/iv"
|
|
|
+ android:text="所属部门"
|
|
|
+ android:textColor="#333"
|
|
|
+ android:textSize="14dp" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_mail_list"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="54dp"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:background="@drawable/shape_common_corners_10dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginRight="25dp"
|
|
|
+ android:text="@{viewModel.role}"
|
|
|
+ android:textColor="#979797"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv1"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="25dp"
|
|
|
+ android:background="@drawable/icon_juese" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@+id/iv1"
|
|
|
+ android:text="所属角色"
|
|
|
+ android:textColor="#333"
|
|
|
+ android:textSize="14dp" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_password"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="54dp"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:background="@drawable/shape_common_corners_10dp"
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginRight="25dp"
|
|
|
+ android:text="@{viewModel.time}"
|
|
|
+ android:textColor="#979797"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv2"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="25dp"
|
|
|
+ android:background="@drawable/icon_time" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@+id/iv2"
|
|
|
+ android:text="创建日期"
|
|
|
+ android:textColor="#333"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_version"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="54dp"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:background="@drawable/shape_common_corners_10dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginRight="25dp"
|
|
|
+ android:text="@{viewModel.versionName}"
|
|
|
+ android:textColor="#979797"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv3"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="25dp"
|
|
|
+ android:background="@drawable/icon_version" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_smrz"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@+id/iv3"
|
|
|
+ android:text="当前版本"
|
|
|
+ android:textColor="#333"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_sign_out"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="80dp"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:background="@drawable/rounded_30ffffff"
|
|
|
+ android:gravity="center_horizontal|center_vertical"
|
|
|
+ android:text="@string/exit_login"
|
|
|
+ android:textColor="#409EFF" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+</layout>
|