<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/mainBackground" android:orientation="vertical"> <!--用户信息Layout--> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/dp_150" android:background="@mipmap/mine_top" android:orientation="vertical"> <View android:id="@+id/statusBarView" android:layout_width="match_parent" android:layout_height="0dp" android:background="#00000000" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <ImageView android:id="@+id/userAvatarView" android:layout_width="@dimen/dp_80" android:layout_height="@dimen/dp_80" android:layout_gravity="center_vertical" android:layout_marginHorizontal="@dimen/dp_15" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginEnd="@dimen/dp_15" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/userNameView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="刘俊凯" android:textColor="@color/white" android:textSize="@dimen/sp_18" /> <ImageView android:id="@+id/exitLoginView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:src="@drawable/ic_exit" /> </RelativeLayout> <TextView android:id="@+id/userPhoneView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginVertical="@dimen/dp_5" android:text="13123123566" android:textColor="@color/white" android:textSize="@dimen/sp_14" /> <TextView android:id="@+id/userUnitView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:text="北京达佳科技有限公司" android:textColor="@color/white" android:textSize="@dimen/sp_14" /> </LinearLayout> </LinearLayout> </LinearLayout> <RelativeLayout android:id="@+id/userAccountLayout" style="@style/itemLayoutStyle" android:layout_margin="@dimen/dp_10" android:background="@drawable/bg_solid_layout_white_radius_10"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_account" /> <TextView style="@style/mainFragmentTextStyle" android:text="账户信息" /> <ImageView style="@style/rightImageStyle" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="@dimen/dp_10" android:background="@drawable/bg_solid_layout_white_radius_10" android:orientation="vertical"> <RelativeLayout style="@style/itemLayoutStyle"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_sound" /> <TextView style="@style/mainFragmentTextStyle" android:text="声音/震动" /> <Switch android:id="@+id/warningSwitch" style="@style/switchStyle" android:thumb="@drawable/select_switch_circle" android:track="@drawable/select_switch_background" tools:ignore="UseSwitchCompatOrMaterialXml" /> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="@dimen/dividerLine" android:layout_marginHorizontal="@dimen/dp_15" android:background="@color/mainBackground" /> <RelativeLayout android:id="@+id/userCollectionLayout" style="@style/itemLayoutStyle"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_statement" /> <TextView style="@style/mainFragmentTextStyle" android:text="报警事件自动记录" /> <Switch android:id="@+id/autoRecordSwitch" style="@style/switchStyle" android:thumb="@drawable/select_switch_circle" android:track="@drawable/select_switch_background" tools:ignore="UseSwitchCompatOrMaterialXml" /> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="@dimen/dp_10" android:layout_marginTop="@dimen/dp_10" android:background="@drawable/bg_solid_layout_white_radius_10" android:orientation="vertical"> <RelativeLayout android:id="@+id/helpLayout" style="@style/itemLayoutStyle"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_info" /> <TextView style="@style/mainFragmentTextStyle" android:text="使用帮助" /> <ImageView style="@style/rightImageStyle" /> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="@dimen/dividerLine" android:layout_marginHorizontal="@dimen/dp_15" android:background="@color/mainBackground" /> <RelativeLayout android:id="@+id/updateLayout" style="@style/itemLayoutStyle"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_update" /> <TextView style="@style/mainFragmentTextStyle" android:text="版本更新" /> <ImageView style="@style/rightImageStyle" /> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="@dimen/dividerLine" android:layout_marginHorizontal="@dimen/dp_15" android:background="@color/mainBackground" /> <RelativeLayout android:id="@+id/backLayout" style="@style/itemLayoutStyle"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_call" /> <TextView style="@style/mainFragmentTextStyle" android:text="意见反馈" /> <ImageView style="@style/rightImageStyle" /> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="@dimen/dividerLine" android:layout_marginHorizontal="@dimen/dp_15" android:background="@color/mainBackground" /> <RelativeLayout android:id="@+id/aboutLayout" style="@style/itemLayoutStyle"> <ImageView style="@style/leftImageStyle" android:background="@drawable/ic_app" /> <TextView style="@style/mainFragmentTextStyle" android:text="版本号" /> <TextView android:id="@+id/appVersionView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:text="1.0.0" android:textSize="@dimen/sp_16" /> </RelativeLayout> </LinearLayout> </LinearLayout>