<?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"> <include layout="@layout/include_base_title" /> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="vertical" android:padding="@dimen/padding_10dp"> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="用户名" /> <TextView android:id="@+id/userNameView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:text="@string/app_name" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <include layout="@layout/line" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="手机号" /> <TextView android:id="@+id/userPhoneView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:text="13123123566" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <include layout="@layout/line" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="报警声音/报警震动" /> <Switch android:id="@+id/warningSwitch" style="@style/switchStyle" android:thumb="@drawable/select_switch_circle" android:track="@drawable/select_switch_background" /> </RelativeLayout> <include layout="@layout/line" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="报警事件自动记录" /> <Switch android:id="@+id/autoRecordSwitch" style="@style/switchStyle" android:thumb="@drawable/select_switch_circle" android:track="@drawable/select_switch_background" /> </RelativeLayout> <include layout="@layout/line" /> <RelativeLayout android:id="@+id/logLayout" style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" android:text="查看日志" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:background="@drawable/ic_right" /> </RelativeLayout> <include layout="@layout/line" /> <RelativeLayout style="@style/itemLayoutStyle"> <TextView style="@style/textViewStyle" 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="2.0.0" android:textSize="@dimen/textFontSize" /> </RelativeLayout> <include layout="@layout/line" /> </LinearLayout> <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton android:id="@+id/loginOutButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="30dp" android:layout_marginBottom="30dp" android:paddingVertical="7dp" android:text="退出登录" android:textColor="@color/white" android:textSize="@dimen/titleFontSize" app:qmui_backgroundColor="@color/mainThemeColor" app:qmui_borderColor="@color/mainThemeColor" app:qmui_radius="20dp" /> </LinearLayout>