rbgame_fragment_user_info.xml 8.7 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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.support.v4.widget.NestedScrollView
        android:overScrollMode="never"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginEnd="50dp"
            android:orientation="vertical"
            android:paddingBottom="20dp">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="20dp"
                android:layout_marginBottom="24dp"
                android:text="个人资料"
                android:textColor="#ff333333"
                android:textSize="18dp"
                android:textStyle="bold"
                tools:ignore="HardcodedText,SpUsage" />


            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="15dp"
                android:layout_marginEnd="15dp"
                android:background="@drawable/rbgame_background_red_round"
                android:layout_marginBottom="12dp"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="100dp"
                    android:layout_height="wrap_content"
                    android:paddingStart="10dp"
                    android:layout_gravity="center_vertical"
                    android:text="当前头像"
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

                <ImageView
                    android:id="@+id/ivHeader"
                    android:layout_width="73dp"
                    android:layout_height="73dp"
                    android:background="#999999"
                    android:scaleType="centerCrop" />

            </LinearLayout>
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="30dp"
                android:layout_marginStart="15dp"
                android:layout_marginEnd="15dp"
                android:background="@drawable/rbgame_background_red_round"
                android:layout_marginBottom="12dp"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="100dp"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:paddingStart="10dp"
                    android:text="ID"
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

                <TextView
                    android:id="@+id/tvAccountID"
                    android:layout_gravity="center_vertical"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:singleLine="true"
                    android:text=""
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="30dp"
                android:layout_marginStart="15dp"
                android:layout_marginEnd="15dp"
                android:background="@drawable/rbgame_background_red_round"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="100dp"
                    android:layout_height="wrap_content"
                    android:text="帐号"
                    android:layout_gravity="center_vertical"
                    android:paddingStart="10dp"
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

                <TextView
                    android:id="@+id/tvAccount"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:singleLine="true"
                    android:layout_gravity="center_vertical"
                    android:text=""
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

            </LinearLayout>
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="15dp"
                android:layout_marginTop="12dp"
                android:background="@drawable/rbgame_background_red_round"
                android:layout_marginEnd="15dp"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="100dp"
                    android:layout_height="wrap_content"
                    android:text="昵称"
                    android:paddingStart="10dp"
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

                <EditText
                    android:id="@+id/etNickName"
                    android:layout_width="match_parent"
                    android:layout_height="30dp"
                    android:background="@drawable/rbgame_shape_input_border"
                    android:gravity="center_vertical"
                    android:hint="请输入昵称"
                    android:drawableEnd="@drawable/rbgame_vector_edit"
                    android:paddingEnd="8dp"
                    android:maxLength="20"
                    android:paddingStart="8dp"
                    android:singleLine="true"
                    android:textColor="#333333"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="30dp"
                android:layout_marginStart="15dp"
                android:layout_marginTop="12dp"
                android:background="@drawable/rbgame_background_red_round"
                android:layout_marginEnd="15dp"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/tvMyGameCoinTitle"
                    android:layout_width="100dp"
                    android:layout_height="wrap_content"
                    android:text="我的游戏币"
                    android:layout_gravity="center_vertical"
                    android:paddingStart="10dp"
                    android:textColor="#222222"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

                <TextView
                    android:id="@+id/tvMyGameCoin"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:singleLine="true"
                    android:text="0.00"
                    android:layout_gravity="center_vertical"
                    android:textColor="#ffe0173a"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

            </LinearLayout>

            <TextView
                android:id="@+id/btnSave"
                android:layout_width="match_parent"
                android:layout_height="@dimen/button_height"
                android:layout_marginStart="20dp"
                android:layout_marginTop="16dp"
                android:layout_marginEnd="20dp"
                android:background="@drawable/rbgame_btn_shape_red"
                android:gravity="center"
                android:text="保存"
                android:textColor="#ffffffff"
                android:textSize="18sp"
                android:visibility="visible"
                tools:ignore="HardcodedText,SpUsage" />

        </LinearLayout>

    </android.support.v4.widget.NestedScrollView>

    <include
        layout="@layout/rbgame_dialog_loading"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:visibility="gone" />

</FrameLayout>