Newer
Older
Meterage / app / src / main / res / layout / activity_user_info.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/rootView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/mainBackground"
    android:orientation="vertical">

    <include layout="@layout/include_base_title" />

    <View
        android:layout_width="match_parent"
        android:layout_height="@dimen/borderThickness"
        android:background="@color/hintColor" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="@dimen/dp_10">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_solid_layout_white_radius_10"
            android:orientation="vertical">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="110dp">

                <TextView
                    style="@style/textViewStyle"
                    android:text="头像"
                    android:textSize="@dimen/sp_16" />

                <ImageView
                    android:id="@+id/userAvatarView"
                    android:layout_width="@dimen/dp_80"
                    android:layout_height="@dimen/dp_80"
                    android:layout_alignParentEnd="true"
                    android:layout_centerInParent="true"
                    android:layout_marginHorizontal="@dimen/dp_20" />
            </RelativeLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/dividerLine"
                android:layout_marginHorizontal="@dimen/dp_10"
                android:background="@color/mainBackground" />

            <RelativeLayout
                android:id="@+id/helpCenterLayout"
                style="@style/itemLayoutStyle">

                <TextView
                    style="@style/textViewStyle"
                    android:text="用户名"
                    android:textSize="@dimen/sp_16" />

                <TextView
                    android:id="@+id/userAccountView"
                    style="@style/textViewStyle"
                    android:layout_alignParentEnd="true"
                    android:textColor="@color/black"
                    android:textSize="@dimen/sp_16" />
            </RelativeLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/dividerLine"
                android:layout_marginHorizontal="@dimen/dp_10"
                android:background="@color/mainBackground" />

            <RelativeLayout
                android:id="@+id/customerServiceLayout"
                style="@style/itemLayoutStyle">

                <TextView
                    style="@style/textViewStyle"
                    android:text="真实姓名"
                    android:textSize="@dimen/sp_16" />

                <TextView
                    android:id="@+id/userRealNameView"
                    style="@style/textViewStyle"
                    android:layout_alignParentEnd="true"
                    android:textColor="@color/black"
                    android:textSize="@dimen/sp_16" />
            </RelativeLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/dividerLine"
                android:layout_marginHorizontal="@dimen/dp_10"
                android:background="@color/mainBackground" />

            <RelativeLayout
                android:id="@+id/updateVersionLayout"
                style="@style/itemLayoutStyle">

                <TextView
                    style="@style/textViewStyle"
                    android:text="所属部门"
                    android:textSize="@dimen/sp_16" />

                <TextView
                    android:id="@+id/userDeptView"
                    style="@style/textViewStyle"
                    android:layout_alignParentEnd="true"
                    android:textColor="@color/black"
                    android:textSize="@dimen/sp_16" />
            </RelativeLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/dividerLine"
                android:layout_marginHorizontal="@dimen/dp_10"
                android:background="@color/mainBackground" />

            <RelativeLayout
                android:id="@+id/aboutUsLayout"
                style="@style/itemLayoutStyle">

                <TextView
                    style="@style/textViewStyle"
                    android:text="手机号"
                    android:textSize="@dimen/sp_16" />

                <TextView
                    android:id="@+id/userPhoneView"
                    style="@style/textViewStyle"
                    android:layout_alignParentEnd="true"
                    android:textColor="@color/black"
                    android:textSize="@dimen/sp_16" />
            </RelativeLayout>
        </LinearLayout>

        <RelativeLayout
            android:id="@+id/changePwdLayout"
            style="@style/itemLayoutStyle"
            android:layout_marginVertical="@dimen/dp_20">

            <TextView
                style="@style/textViewStyle"
                android:text="修改密码"
                android:textSize="@dimen/sp_16" />

            <ImageView style="@style/rightImageStyle" />
        </RelativeLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <Button
                android:id="@+id/loginOutButton"
                style="@style/MainButtonStyle"
                android:layout_alignParentBottom="true"
                android:layout_marginHorizontal="20dp"
                android:layout_marginVertical="@dimen/dp_10"
                android:text="退出登录" />
        </RelativeLayout>
    </LinearLayout>
</LinearLayout>