<?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:background="@color/mainBackColor" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight" android:background="@color/mainThemeColor"> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_centerInParent="true" android:gravity="center" android:text="我的" android:textColor="@color/white" android:textSize="@dimen/sp_18" /> <ImageView android:id="@+id/loginOutView" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentEnd="true" android:paddingHorizontal="@dimen/dp_10" android:src="@drawable/ic_exit" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/mainBackColor" android:orientation="vertical" android:padding="@dimen/dp_10"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/bg_solid_layout_white_radius_10" android:padding="@dimen/dp_10"> <ImageView android:id="@+id/userImageView" android:layout_width="75dp" android:layout_height="75dp" android:layout_centerVertical="true" android:layout_marginEnd="@dimen/dp_10" android:src="@mipmap/user_icon" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_toEndOf="@id/userImageView" android:orientation="vertical"> <TextView android:id="@+id/userNameView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="张三" android:textColor="@color/mainTextColor" android:textSize="@dimen/sp_16" /> <TextView android:id="@+id/userPhoneView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingVertical="2dp" android:text="13100000000" android:textColor="@color/subTextColor" android:textSize="@dimen/sp_12" /> <TextView android:id="@+id/userDeptView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/group_name" android:textColor="@color/subTextColor" android:textSize="@dimen/sp_12" /> </LinearLayout> <Button android:id="@+id/updateUserButton" style="@style/WhiteButtonStyle" android:layout_width="@dimen/dp_50" android:layout_height="@dimen/dp_25" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:text="同步" android:textColor="@color/mainThemeColor" android:textSize="@dimen/sp_12" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dp_20" android:background="@drawable/bg_solid_layout_white_radius_10" android:orientation="vertical"> <RelativeLayout android:id="@+id/changePwdLayout" style="@style/RelativeItemLayoutStyle"> <ImageView android:id="@+id/changePwdImage" style="@style/RelativeLeftImageStyle" android:src="@drawable/ic_change_pwd" /> <TextView style="@style/RelativeTextViewStyle" android:layout_toEndOf="@id/changePwdImage" android:text="修改密码" /> <ImageView style="@style/RelativeRightImageStyle" /> </RelativeLayout> <View style="@style/DividerViewStyle" /> <RelativeLayout android:id="@+id/aboutUsLayout" style="@style/RelativeItemLayoutStyle"> <ImageView android:id="@+id/aboutImage" style="@style/RelativeLeftImageStyle" android:src="@drawable/ic_about" /> <TextView style="@style/RelativeTextViewStyle" android:layout_toEndOf="@id/aboutImage" android:text="关于我们" /> <ImageView style="@style/RelativeRightImageStyle" /> </RelativeLayout> <View style="@style/DividerViewStyle" /> <RelativeLayout android:id="@+id/updateVersionLayout" style="@style/RelativeItemLayoutStyle"> <ImageView android:id="@+id/versionImage" style="@style/RelativeLeftImageStyle" android:src="@drawable/ic_update_version" /> <TextView style="@style/RelativeTextViewStyle" android:layout_toEndOf="@id/versionImage" android:text="版本更新" /> <ImageView style="@style/RelativeRightImageStyle" /> </RelativeLayout> <View style="@style/DividerViewStyle" /> <RelativeLayout android:id="@+id/clearCacheLayout" style="@style/RelativeItemLayoutStyle"> <ImageView android:id="@+id/cleanImage" style="@style/RelativeLeftImageStyle" android:src="@drawable/ic_clean" /> <TextView style="@style/RelativeTextViewStyle" android:layout_toEndOf="@id/cleanImage" android:text="清除缓存" /> <TextView android:id="@+id/cacheSizeView" style="@style/RelativeTextViewStyle" android:layout_toStartOf="@id/tempView" android:text="0B" android:textColor="@color/mainTextColor" /> <ImageView android:id="@+id/tempView" style="@style/RelativeRightImageStyle" /> </RelativeLayout> <View style="@style/DividerViewStyle" /> <RelativeLayout style="@style/RelativeItemLayoutStyle"> <ImageView android:id="@+id/phoneImage" style="@style/RelativeLeftImageStyle" android:src="@drawable/ic_phone" /> <TextView style="@style/RelativeTextViewStyle" android:layout_toEndOf="@id/phoneImage" android:text="联系客服" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginEnd="@dimen/dp_10" android:autoLink="phone" android:text="010-68387447" android:textColorLink="@color/mainThemeColor" android:textSize="@dimen/sp_16" /> </RelativeLayout> </LinearLayout> </LinearLayout> </LinearLayout>