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