<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 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/dp_10"> <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/sp_16" /> </RelativeLayout> <include layout="@layout/include_line_view" /> <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/sp_16" /> </RelativeLayout> <include layout="@layout/include_line_view" /> <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/include_line_view" /> <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/include_line_view" /> <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/include_line_view" /> <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/sp_16" /> </RelativeLayout> <include layout="@layout/include_line_view" /> </LinearLayout> <Button android:id="@+id/loginOutButton" style="@style/MainButtonStyle" android:layout_marginHorizontal="30dp" android:layout_marginBottom="30dp" android:text="退出登录" /> </LinearLayout>