activity_publish_profile_picture.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<layout xmlns:android="http://schemas.android.com/apk/res/android">
  3
  4    <RelativeLayout
  5        android:layout_width="match_parent"
  6        android:layout_height="match_parent">
  7
  8        <com.google.android.material.appbar.AppBarLayout
  9            android:id="@+id/app_bar_layout"
 10            android:layout_width="match_parent"
 11            android:layout_height="wrap_content">
 12
 13            <com.google.android.material.appbar.MaterialToolbar
 14                android:id="@+id/toolbar"
 15                android:layout_width="match_parent"
 16                android:layout_height="wrap_content"
 17                android:minHeight="?attr/actionBarSize" />
 18
 19        </com.google.android.material.appbar.AppBarLayout>
 20
 21
 22        <LinearLayout
 23            android:layout_width="fill_parent"
 24            android:layout_height="wrap_content"
 25            android:layout_below="@id/app_bar_layout"
 26            android:layout_marginLeft="@dimen/activity_horizontal_margin"
 27            android:layout_marginTop="@dimen/activity_vertical_margin"
 28            android:layout_marginRight="@dimen/activity_horizontal_margin"
 29            android:layout_marginBottom="@dimen/activity_vertical_margin">
 30
 31            <LinearLayout
 32                android:layout_width="match_parent"
 33                android:layout_height="wrap_content"
 34                android:gravity="center_horizontal"
 35                android:orientation="vertical">
 36
 37                <FrameLayout
 38                    android:id="@+id/account_image_wrapper"
 39                    android:layout_width="wrap_content"
 40                    android:layout_height="wrap_content"
 41                    android:layout_marginTop="@dimen/publish_avatar_top_margin"
 42                    android:layout_marginBottom="8dp"
 43                    android:background="@drawable/background_account_profile_picture">
 44
 45                    <ImageView
 46                        android:id="@+id/account_image"
 47                        android:layout_width="@dimen/publish_avatar_size"
 48                        android:layout_height="@dimen/publish_avatar_size"
 49                        android:contentDescription="@string/your_avatar_tap_to_select_new_avatar" />
 50                </FrameLayout>
 51
 52                <TextView
 53                    android:id="@+id/hint"
 54                    android:layout_width="wrap_content"
 55                    android:layout_height="wrap_content"
 56                    android:text="@string/touch_to_choose_picture"
 57                    android:textAppearance="?textAppearanceBodyMedium" />
 58
 59                <TextView
 60                    android:id="@+id/secondary_hint"
 61                    android:layout_width="wrap_content"
 62                    android:layout_height="wrap_content"
 63                    android:text="@string/or_long_press_for_default"
 64                    android:textAppearance="?textAppearanceBodyMedium" />
 65
 66                <TextView
 67                    android:id="@+id/hint_or_warning"
 68                    android:layout_width="wrap_content"
 69                    android:layout_height="wrap_content"
 70                    android:layout_marginTop="8dp"
 71                    android:layout_marginBottom="8dp"
 72                    android:textAppearance="?textAppearanceBodyMedium"
 73                    android:textColor="?colorError" />
 74
 75            </LinearLayout>
 76        </LinearLayout>
 77
 78        <RelativeLayout
 79            android:id="@+id/button_bar"
 80            android:layout_width="wrap_content"
 81            android:layout_height="wrap_content"
 82            android:layout_alignParentStart="true"
 83            android:layout_alignParentEnd="true"
 84            android:layout_alignParentBottom="true"
 85            android:paddingHorizontal="16dp"
 86            android:paddingVertical="8dp">
 87
 88            <Button
 89                android:id="@+id/cancel_button"
 90                style="@style/Widget.Material3.Button.TextButton"
 91                android:layout_width="wrap_content"
 92                android:layout_height="wrap_content"
 93                android:layout_alignParentStart="true"
 94                android:layout_centerInParent="true"
 95                android:text="@string/cancel" />
 96
 97            <Button
 98                android:id="@+id/publish_button"
 99                android:layout_width="wrap_content"
100                android:layout_height="wrap_content"
101                android:layout_alignParentEnd="true"
102                android:layout_centerInParent="true"
103                android:enabled="false"
104                android:text="@string/publish" />
105        </RelativeLayout>
106
107
108    </RelativeLayout>
109</layout>