2017-04-17 08:51:09 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-02-13 08:04:18 +11:00
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-05-01 05:57:15 +10:00
|
|
|
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">
|
|
|
|
|
2017-07-15 17:10:55 +10:00
|
|
|
<include layout="@layout/toolbar_basic" />
|
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
<ScrollView
|
2017-04-17 08:51:09 +10:00
|
|
|
android:layout_width="match_parent"
|
2017-07-15 17:10:55 +10:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
<LinearLayout
|
2017-04-17 08:51:09 +10:00
|
|
|
android:layout_width="match_parent"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_height="wrap_content"
|
2018-04-12 03:15:22 +10:00
|
|
|
android:focusableInTouchMode="true"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:orientation="vertical">
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
<RelativeLayout
|
2017-05-01 23:23:34 +10:00
|
|
|
android:layout_width="match_parent"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/headerPreview"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:contentDescription="@null" />
|
|
|
|
|
2018-02-13 08:04:18 +11:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/headerButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:background="#66000000"
|
|
|
|
android:contentDescription="@string/label_header"
|
|
|
|
app:srcCompat="@drawable/ic_add_a_photo_32dp" />
|
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
<ProgressBar
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/headerProgressBar"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
2017-05-01 23:23:34 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:layout_marginStart="16dp"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_marginTop="-40dp">
|
|
|
|
|
|
|
|
<com.pkmmte.view.CircularImageView
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/avatarPreview"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:contentDescription="@null" />
|
|
|
|
|
2018-02-13 08:04:18 +11:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/avatarButton"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:background="@drawable/round_button"
|
|
|
|
android:contentDescription="@string/label_avatar"
|
|
|
|
android:elevation="4dp"
|
|
|
|
app:srcCompat="@drawable/ic_add_a_photo_32dp" />
|
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
<ProgressBar
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/avatarProgressBar"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:id="@+id/layout_edit_profile_display_name"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:layout_width="match_parent"
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_marginTop="30dp">
|
2017-04-21 08:56:36 +10:00
|
|
|
|
2017-05-05 00:32:21 +10:00
|
|
|
<android.support.design.widget.TextInputEditText
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/displayNameEditText"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:layout_marginEnd="16dp"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_marginStart="16dp"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:hint="@string/hint_display_name"
|
2018-04-18 03:25:56 +10:00
|
|
|
android:importantForAutofill="no"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:maxLength="30" />
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
</android.support.design.widget.TextInputLayout>
|
2017-04-19 14:01:04 +10:00
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:id="@+id/layout_edit_profile_note"
|
2017-05-01 05:57:15 +10:00
|
|
|
android:layout_width="match_parent"
|
2017-04-19 14:01:04 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_marginTop="30dp">
|
|
|
|
|
2017-05-05 00:32:21 +10:00
|
|
|
<android.support.design.widget.TextInputEditText
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/noteEditText"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:layout_marginBottom="16dp"
|
2017-05-02 12:30:49 +10:00
|
|
|
android:layout_marginEnd="16dp"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:hint="@string/hint_note"
|
2018-04-18 03:25:56 +10:00
|
|
|
android:importantForAutofill="no"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:maxLength="160" />
|
2017-05-02 12:30:49 +10:00
|
|
|
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
2017-05-01 05:57:15 +10:00
|
|
|
|
2018-03-28 05:46:53 +11:00
|
|
|
<android.support.v7.widget.AppCompatCheckBox
|
|
|
|
android:id="@+id/lockedCheckBox"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="30dp"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:text="@string/lock_account_label"
|
|
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:paddingStart="40dp"
|
|
|
|
android:text="@string/lock_account_label_description"
|
|
|
|
android:textSize="?attr/status_text_small" />
|
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
</LinearLayout>
|
2017-04-19 14:01:04 +10:00
|
|
|
|
2017-05-02 12:30:49 +10:00
|
|
|
</ScrollView>
|
2017-04-17 08:51:09 +10:00
|
|
|
|
2017-07-15 17:10:55 +10:00
|
|
|
<include layout="@layout/toolbar_shadow_shim" />
|
|
|
|
|
2017-04-21 08:56:36 +10:00
|
|
|
<ProgressBar
|
2018-02-13 08:04:18 +11:00
|
|
|
android:id="@+id/saveProgressBar"
|
2017-04-21 08:56:36 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:layout_gravity="center"
|
2017-04-21 08:56:36 +10:00
|
|
|
android:indeterminate="true"
|
2018-02-13 08:04:18 +11:00
|
|
|
android:visibility="gone" />
|
2017-04-21 08:56:36 +10:00
|
|
|
|
2017-04-17 08:51:09 +10:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|