2017-04-17 08:51:09 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-05-01 05:57:15 +10:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-04-17 08:51:09 +10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="com.keylesspalace.tusky.EditProfileActivity">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:background="?attr/toolbar_background_color"
|
2017-04-17 08:51:09 +10:00
|
|
|
android:elevation="4dp" />
|
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<TextView
|
2017-04-17 08:51:09 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:text="@string/label_header"
|
|
|
|
android:labelFor="@+id/edit_profile_header"
|
|
|
|
android:visibility="gone"/>
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<ImageButton
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="125dp"
|
|
|
|
android:id="@id/edit_profile_header"
|
|
|
|
app:srcCompat="@drawable/ic_add_a_photo_32dp"
|
|
|
|
android:text="@string/action_photo_pick"
|
|
|
|
android:textColor="@color/text_color_primary_dark" />
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<RelativeLayout
|
2017-04-17 08:51:09 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-21 08:56:36 +10:00
|
|
|
android:paddingLeft="16dp">
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<ImageView
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_width="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:layout_height="125dp"
|
|
|
|
android:id="@+id/edit_profile_header_preview"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:visibility="gone" />
|
2017-04-21 08:56:36 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<ProgressBar
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:id="@+id/edit_profile_header_progress"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2017-04-21 08:56:36 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/label_avatar"
|
|
|
|
android:labelFor="@+id/edit_profile_avatar"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:id="@id/edit_profile_avatar"
|
|
|
|
app:srcCompat="@drawable/ic_add_a_photo_32dp"
|
|
|
|
android:text="@string/action_photo_pick"
|
|
|
|
android:textColor="@color/text_color_primary_dark"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginTop="-40dp"
|
|
|
|
android:elevation="10dp"/>
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-04-19 14:01:04 +10:00
|
|
|
<RelativeLayout
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="16dp">
|
2017-04-19 14:01:04 +10:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:id="@+id/edit_profile_avatar_preview"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/edit_profile_avatar_progress"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:id="@+id/layout_edit_profile_display_name"
|
|
|
|
android:layout_width="match_parent"
|
2017-04-17 08:51:09 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:layout_marginTop="15dp">
|
2017-04-21 08:56:36 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<EditText
|
|
|
|
android:layout_width="match_parent"
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:id="@+id/edit_profile_display_name"
|
|
|
|
android:hint="@string/hint_display_name"
|
|
|
|
android:maxLength="30"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp" />
|
2017-04-21 08:56:36 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
</android.support.design.widget.TextInputLayout>
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:id="@+id/layout_edit_profile_note"
|
|
|
|
android:layout_width="match_parent"
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:layout_marginTop="15dp">
|
2017-04-19 14:01:04 +10:00
|
|
|
|
2017-05-01 05:57:15 +10:00
|
|
|
<EditText
|
|
|
|
android:layout_width="match_parent"
|
2017-04-19 14:01:04 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:id="@+id/edit_profile_note"
|
|
|
|
android:hint="@string/hint_note"
|
|
|
|
android:maxLength="160"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp" />
|
|
|
|
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
2017-04-19 14:01:04 +10:00
|
|
|
|
2017-04-17 08:51:09 +10:00
|
|
|
</LinearLayout>
|
|
|
|
|
2017-04-21 08:56:36 +10:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/edit_profile_save_progress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
2017-04-17 08:51:09 +10:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|