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 </FrameLayout>
50
51 <TextView
52 android:id="@+id/hint"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:text="@string/touch_to_choose_picture"
56 android:textAppearance="?textAppearanceBodyMedium" />
57
58 <TextView
59 android:id="@+id/secondary_hint"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:text="@string/or_long_press_for_default"
63 android:textAppearance="?textAppearanceBodyMedium" />
64
65 <TextView
66 android:id="@+id/hint_or_warning"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_marginTop="8dp"
70 android:layout_marginBottom="8dp"
71 android:textAppearance="?textAppearanceBodyMedium"
72 android:textColor="?colorError" />
73
74 </LinearLayout>
75 </LinearLayout>
76
77 <RelativeLayout
78 android:id="@+id/button_bar"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:layout_alignParentStart="true"
82 android:layout_alignParentEnd="true"
83 android:layout_alignParentBottom="true"
84 android:paddingHorizontal="16dp"
85 android:paddingVertical="8dp">
86
87 <Button
88 android:id="@+id/cancel_button"
89 style="@style/Widget.Material3.Button.TextButton"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:layout_alignParentStart="true"
93 android:layout_centerInParent="true"
94 android:text="@string/cancel" />
95
96 <Button
97 android:id="@+id/publish_button"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:layout_alignParentEnd="true"
101 android:layout_centerInParent="true"
102 android:enabled="false"
103 android:text="@string/publish" />
104 </RelativeLayout>
105
106
107 </RelativeLayout>
108</layout>