fragment_profile.xml 4.03 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
5
    android:id="@+id/relative_layout"
6 7 8 9 10
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:focusableInTouchMode="true"
    tools:context=".profile.ui.ProfileFragment">

11 12 13 14 15
    <include
        android:id="@+id/layout_app_bar"
        layout="@layout/app_bar"
        app:layout_constraintTop_toTopOf="parent" />

16
    <ScrollView
17
        android:layout_width="match_parent"
18 19
        android:layout_height="wrap_content"
        android:layout_below="@+id/layout_app_bar">
20

21
        <LinearLayout
22
            android:id="@+id/profile_container"
23
            android:layout_width="match_parent"
24
            android:layout_height="wrap_content"
25
            android:layout_margin="@dimen/screen_edge_left_and_right_margins"
26 27 28 29 30 31
            android:gravity="center"
            android:orientation="vertical"
            android:visibility="gone"
            tools:visibility="visible">

            <include
32
                android:id="@+id/layout_avatar_profile"
33 34 35 36 37
                layout="@layout/avatar_profile"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="32dp" />

38 39 40 41 42 43 44 45 46 47 48 49
            <TextView
                android:id="@+id/text_status"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="32dp"
                android:paddingTop="10dp"
                android:paddingBottom="10dp"
                android:text="@string/status"
                android:textColor="#DE000000"
                android:textSize="18sp"
                android:textStyle="normal" />

50 51 52
            <EditText
                android:id="@+id/text_name"
                style="@style/Profile.EditText"
53 54
                android:layout_width="match_parent"
                android:layout_height="48dp"
55
                android:layout_marginTop="16dp"
divyanshu's avatar
divyanshu committed
56
                android:drawableStart="@drawable/ic_person_black_20dp"
57 58
                android:hint="@string/msg_name"
                android:inputType="textCapWords" />
59

60 61 62
            <EditText
                android:id="@+id/text_username"
                style="@style/Profile.EditText"
63 64
                android:layout_width="match_parent"
                android:layout_height="48dp"
65
                android:layout_marginTop="16dp"
divyanshu's avatar
divyanshu committed
66
                android:drawableStart="@drawable/ic_at_black_20dp"
67 68
                android:hint="@string/msg_username"
                android:inputType="text" />
69

70 71 72
            <EditText
                android:id="@+id/text_email"
                style="@style/Profile.EditText"
73 74
                android:layout_width="match_parent"
                android:layout_height="48dp"
75
                android:layout_marginTop="16dp"
76
                android:layout_marginBottom="32dp"
divyanshu's avatar
divyanshu committed
77
                android:drawableStart="@drawable/ic_email_black_20dp"
78 79 80 81
                android:hint="@string/msg_email"
                android:inputType="textEmailAddress" />
        </LinearLayout>
    </ScrollView>
82 83

    <com.wang.avi.AVLoadingIndicatorView
84
        android:id="@+id/view_loading"
85 86 87
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
88
        app:indicatorColor="@color/colorBlack"
89 90
        app:indicatorName="BallPulseIndicator" />

91
    <View
92
        android:id="@+id/view_dim"
93 94 95 96 97 98
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/colorDim"
        android:visibility="gone" />

    <include
99
        android:id="@+id/layout_update_avatar_options"
100 101 102 103 104 105
        layout="@layout/update_avatar_options"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:visibility="gone" />

106
</RelativeLayout>