chinwag-android/app/src/main/res/layout/activity_edit_profile.xml

137 lines
5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2017-04-21 08:56:36 +10:00
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
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"
android:background="@android:color/transparent"
android:elevation="4dp" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/edit_profile_display_name"
android:hint="@string/hint_display_name"
2017-04-21 08:56:36 +10:00
android:maxLength="30"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/edit_profile_note"
android:hint="@string/hint_note"
2017-04-21 08:56:36 +10:00
android:maxLength="160"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp" />
2017-04-21 08:56:36 +10:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-21 08:56:36 +10:00
android:orientation="horizontal"
android:paddingLeft="16dp">
2017-04-21 08:56:36 +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_marginRight="8dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@id/edit_profile_avatar"
android:text="@string/action_photo_pick"
android:textColor="@color/text_color_primary_dark" />
</LinearLayout>
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-04-21 08:56:36 +10:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-21 08:56:36 +10:00
android:orientation="horizontal"
android:paddingLeft="16dp">
2017-04-21 08:56:36 +10:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_header"
android:labelFor="@+id/edit_profile_header"
android:layout_marginRight="8dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@id/edit_profile_header"
android:text="@string/action_photo_pick"
android:textColor="@color/text_color_primary_dark" />
</LinearLayout>
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="167.2dp"
android:layout_height="80dp"
android:id="@+id/edit_profile_header_preview"
android:contentDescription="@null"
android:visibility="gone" />
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/edit_profile_header_progress"
android:layout_centerInParent="true"
android:indeterminate="true"
android:visibility="gone" />
</RelativeLayout>
</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" />
</android.support.design.widget.CoordinatorLayout>