aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-11-14 21:10:37 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-11-15 17:14:10 +0100
commit8319822427169a94bad8fc06f6889ed3b53b06b5 (patch)
tree40078d8076dd323540eb95277789195fd5e443a5 /src/main/res/layout
parent25babd117d0efed2ad09cb8f5f465abdf5ae6ed0 (diff)
make presence dialog scrollable to fit small screens
Diffstat (limited to 'src/main/res/layout')
-rw-r--r--src/main/res/layout/dialog_presence.xml105
1 files changed, 54 insertions, 51 deletions
diff --git a/src/main/res/layout/dialog_presence.xml b/src/main/res/layout/dialog_presence.xml
index cef46e74a..68c39e131 100644
--- a/src/main/res/layout/dialog_presence.xml
+++ b/src/main/res/layout/dialog_presence.xml
@@ -2,68 +2,71 @@
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingStart="?attr/dialog_horizontal_padding"
- android:paddingLeft="?attr/dialog_horizontal_padding"
- android:paddingTop="?attr/dialog_vertical_padding"
- android:paddingEnd="?attr/dialog_horizontal_padding"
- android:paddingRight="?attr/dialog_horizontal_padding"
- android:paddingBottom="?attr/dialog_vertical_padding">
+ <ScrollView>
- <RadioGroup
- android:id="@+id/show"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="?attr/dialog_vertical_padding">
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:paddingStart="?attr/dialog_horizontal_padding"
+ android:paddingLeft="?attr/dialog_horizontal_padding"
+ android:paddingTop="?attr/dialog_vertical_padding"
+ android:paddingEnd="?attr/dialog_horizontal_padding"
+ android:paddingRight="?attr/dialog_horizontal_padding"
+ android:paddingBottom="?attr/dialog_vertical_padding">
- <RadioButton
- android:id="@+id/online"
- style="@style/Widget.Conversations.RadioButton"
+ <RadioGroup
+ android:id="@+id/show"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="@string/presence_online" />
+ android:layout_marginBottom="?attr/dialog_vertical_padding">
- <RadioButton
- android:id="@+id/away"
- style="@style/Widget.Conversations.RadioButton"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/presence_away" />
+ <RadioButton
+ android:id="@+id/online"
+ style="@style/Widget.Conversations.RadioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_online" />
- <RadioButton
- android:id="@+id/xa"
- style="@style/Widget.Conversations.RadioButton"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/presence_xa" />
+ <RadioButton
+ android:id="@+id/away"
+ style="@style/Widget.Conversations.RadioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_away" />
- <RadioButton
- android:id="@+id/dnd"
- style="@style/Widget.Conversations.RadioButton"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/presence_dnd" />
- </RadioGroup>
+ <RadioButton
+ android:id="@+id/xa"
+ style="@style/Widget.Conversations.RadioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_xa" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
- app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
+ <RadioButton
+ android:id="@+id/dnd"
+ style="@style/Widget.Conversations.RadioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_dnd" />
+ </RadioGroup>
- <de.pixart.messenger.ui.widget.ImmediateAutoCompleteTextView
- android:id="@+id/status_message"
- style="@style/Widget.Conversations.EditText"
+ <com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:ems="10"
- android:hint="@string/status_message"
- android:inputType="textShortMessage"
- android:textColor="?attr/text_Color_Main" />
- </com.google.android.material.textfield.TextInputLayout>
+ app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
+ app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
+
+ <de.pixart.messenger.ui.widget.ImmediateAutoCompleteTextView
+ android:id="@+id/status_message"
+ style="@style/Widget.Conversations.EditText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/status_message"
+ android:inputType="textShortMessage"
+ android:textColor="?attr/text_Color_Main" />
+ </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
+ </LinearLayout>
+ </ScrollView>
</layout> \ No newline at end of file