2017-04-17 00:51:09 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-12-17 15:25:35 +01:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-04-30 21:57:15 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-04-17 00:51:09 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-03-02 20:39:56 +01:00
|
|
|
tools:context=".EditProfileActivity">
|
2017-04-17 00:51:09 +02:00
|
|
|
|
2021-03-07 19:05:51 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/includedToolbar"
|
|
|
|
layout="@layout/toolbar_basic" />
|
2017-07-15 09:10:55 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2018-08-15 20:47:09 +02:00
|
|
|
android:id="@+id/scrollView"
|
2017-04-17 00:51:09 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-07-15 09:10:55 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2017-04-17 00:51:09 +02:00
|
|
|
|
2019-03-08 20:27:16 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-04-17 00:51:09 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-05-02 04:30:49 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-08 20:27:16 +01:00
|
|
|
android:focusableInTouchMode="true">
|
2017-04-17 00:51:09 +02:00
|
|
|
|
2019-03-08 20:27:16 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/headerPreview"
|
2017-05-01 15:23:34 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-03-08 20:27:16 +01:00
|
|
|
android:layout_height="200dp"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-05-02 04:30:49 +02:00
|
|
|
|
2019-03-08 20:27:16 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/headerButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:background="#66000000"
|
|
|
|
android:contentDescription="@string/label_header"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_add_a_photo_32dp" />
|
|
|
|
|
2019-05-26 08:46:08 +02:00
|
|
|
<ImageView
|
2019-03-08 20:27:16 +01:00
|
|
|
android:id="@+id/avatarPreview"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/headerPreview"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/contentContainer"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/headerPreview" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/avatarButton"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:background="@drawable/round_button"
|
|
|
|
android:contentDescription="@string/label_avatar"
|
|
|
|
android:elevation="4dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/headerPreview"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/contentContainer"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/headerPreview"
|
|
|
|
app:srcCompat="@drawable/ic_add_a_photo_32dp" />
|
|
|
|
|
2018-08-15 20:47:09 +02:00
|
|
|
<LinearLayout
|
2019-03-08 20:27:16 +01:00
|
|
|
android:id="@+id/contentContainer"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:layout_width="@dimen/timeline_width"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2019-03-08 20:27:16 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/avatarPreview">
|
2018-08-15 20:47:09 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
style="@style/TuskyTextInput"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:hint="@string/hint_display_name">
|
2017-05-02 04:30:49 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2018-08-15 20:47:09 +02:00
|
|
|
android:id="@+id/displayNameEditText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:lines="1" />
|
2017-05-02 04:30:49 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2017-04-21 00:56:36 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
style="@style/TuskyTextInput"
|
2019-08-04 20:25:07 +02:00
|
|
|
android:id="@+id/noteEditTextLayout"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2019-01-17 22:15:06 +01:00
|
|
|
android:hint="@string/hint_note"
|
|
|
|
app:counterEnabled="true"
|
|
|
|
app:counterTextColor="?android:textColorTertiary">
|
2018-08-15 20:47:09 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2018-08-15 20:47:09 +02:00
|
|
|
android:id="@+id/noteEditText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:importantForAutofill="no" />
|
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2018-08-15 20:47:09 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<CheckBox
|
2018-08-15 20:47:09 +02:00
|
|
|
android:id="@+id/lockedCheckBox"
|
2017-05-02 04:30:49 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:layout_marginTop="30dp"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:text="@string/lock_account_label"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:buttonTint="@color/compound_button_color" />
|
2017-04-19 06:01:04 +02:00
|
|
|
|
2018-08-15 20:47:09 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="24dp"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:paddingStart="40dp"
|
|
|
|
android:text="@string/lock_account_label_description"
|
|
|
|
android:textSize="?attr/status_text_small" />
|
2017-05-02 04:30:49 +02:00
|
|
|
|
2018-08-15 20:47:09 +02:00
|
|
|
<TextView
|
2017-05-02 04:30:49 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-12 22:04:18 +01:00
|
|
|
android:layout_marginStart="16dp"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:text="@string/profile_metadata_label"
|
|
|
|
android:textSize="?attr/status_text_small" />
|
2017-05-02 04:30:49 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2018-08-15 20:47:09 +02:00
|
|
|
android:id="@+id/fieldList"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:nestedScrollingEnabled="false" />
|
2017-04-30 21:57:15 +02:00
|
|
|
|
2018-08-15 20:47:09 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/addFieldButton"
|
2018-12-17 15:25:35 +01:00
|
|
|
style="@style/TuskyButton"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginStart="16dp"
|
2018-12-17 15:25:35 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2018-08-15 20:47:09 +02:00
|
|
|
android:drawablePadding="6dp"
|
|
|
|
android:text="@string/profile_metadata_add"
|
|
|
|
android:textColor="#fff" />
|
2018-03-27 20:46:53 +02:00
|
|
|
|
2018-08-15 20:47:09 +02:00
|
|
|
</LinearLayout>
|
2019-03-08 20:27:16 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2017-04-19 06:01:04 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2017-04-17 00:51:09 +02:00
|
|
|
|
2017-04-21 00:56:36 +02:00
|
|
|
<ProgressBar
|
2018-02-12 22:04:18 +01:00
|
|
|
android:id="@+id/saveProgressBar"
|
2017-04-21 00:56:36 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-12 22:04:18 +01:00
|
|
|
android:layout_gravity="center"
|
2017-04-21 00:56:36 +02:00
|
|
|
android:indeterminate="true"
|
2018-02-12 22:04:18 +01:00
|
|
|
android:visibility="gone" />
|
2017-04-21 00:56:36 +02:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|