156 lines
6.6 KiB
XML
156 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true"
|
|
android:background="@color/background_primary"
|
|
android:orientation="vertical">
|
|
|
|
<include
|
|
android:id="@+id/appbar_general"
|
|
layout="@layout/app_bar_general"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
app:layout_constraintTop_toBottomOf="@id/appbar_general">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/userInfoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:padding="24dp">
|
|
|
|
<!-- Dummy item to prevent display_name from receiving focus -->
|
|
<FrameLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="0px"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
tools:ignore="UselessLeaf" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/dashpayUserAvatar"
|
|
android:layout_width="134dp"
|
|
android:layout_height="134dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="0"
|
|
tools:src="@drawable/user5" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/profile_edit_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/transparent_button_background"
|
|
app:layout_constraintBottom_toBottomOf="@id/dashpayUserAvatar"
|
|
app:layout_constraintEnd_toEndOf="@id/dashpayUserAvatar"
|
|
app:srcCompat="@drawable/ic_edit_profile_picture" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/display_name_label"
|
|
style="@style/Body2.Secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="28dp"
|
|
android:text="@string/display_name"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/dashpayUserAvatar" />
|
|
|
|
<EditText
|
|
android:id="@+id/display_name"
|
|
style="@style/Subtitle1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="52dp"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/round_corners_white_bg"
|
|
android:elevation="2dp"
|
|
android:inputType="textPersonName"
|
|
android:lines="1"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp"
|
|
app:layout_constraintTop_toBottomOf="@id/display_name_label"
|
|
tools:text="Katie Rennie" />
|
|
|
|
<TextView
|
|
android:id="@+id/display_name_char_count"
|
|
style="@style/Overline.Tertiary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:visibility="invisible"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/display_name"
|
|
tools:text="0/23 Characters"
|
|
tools:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/about_me_label"
|
|
style="@style/Body2.Secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/about_me"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/display_name_char_count" />
|
|
|
|
<EditText
|
|
android:id="@+id/about_me"
|
|
style="@style/Body2.Medium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="134dp"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/round_corners_white_bg"
|
|
android:elevation="2dp"
|
|
android:gravity="start"
|
|
android:inputType="textMultiLine"
|
|
android:padding="20dp"
|
|
app:layout_constraintTop_toBottomOf="@id/about_me_label"
|
|
tools:text="Katie Rennie is a very cool girl that uses Dash on her daily purchases. She loves Dash because it's fast, secure and reliable." />
|
|
|
|
<TextView
|
|
android:id="@+id/aboutMeCharCount"
|
|
style="@style/Overline.Tertiary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/about_me"
|
|
tools:text="0/256 Characters"
|
|
tools:visibility="visible"/>
|
|
|
|
<Button
|
|
android:id="@+id/save"
|
|
style="@style/Button.Primary.Large.Blue"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="32dp"
|
|
android:text="@string/save"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|