aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-01 20:44:02 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-01 20:56:39 +0200
commit0aff702a72c54cd1dd6746e3080a4318fe17b72a (patch)
tree256600a5ae293d76ebb1ad59ba5b15cb523f2857 /src/main/res
parentc2f72e3d8c91f92cc8cfe6480196a2f55d9e4364 (diff)
wip: new status message dialog
Diffstat (limited to '')
-rw-r--r--src/main/res/layout/dialog_presence.xml56
-rw-r--r--src/main/res/menu/editaccount.xml12
-rw-r--r--src/main/res/menu/manageaccounts_context.xml3
3 files changed, 62 insertions, 9 deletions
diff --git a/src/main/res/layout/dialog_presence.xml b/src/main/res/layout/dialog_presence.xml
new file mode 100644
index 000000000..bc0f30c32
--- /dev/null
+++ b/src/main/res/layout/dialog_presence.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layout xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:paddingBottom="?attr/dialog_vertical_padding"
+ android:paddingLeft="?attr/dialog_horizontal_padding"
+ android:paddingRight="?attr/dialog_horizontal_padding"
+ android:paddingTop="?attr/dialog_vertical_padding">
+
+ <RadioGroup
+ android:id="@+id/show"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="?attr/dialog_vertical_padding">
+
+ <RadioButton
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_online" />
+
+ <RadioButton
+ android:id="@+id/radioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_away" />
+
+ <RadioButton
+ android:id="@+id/radioButton2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_xa" />
+
+ <RadioButton
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/presence_dnd" />
+ </RadioGroup>
+
+ <android.support.design.widget.TextInputLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <de.pixart.messenger.ui.widget.ImmediateAutoCompleteTextView
+ android:id="@+id/status_message"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/status_message"
+ android:inputType="textPersonName" />
+ </android.support.design.widget.TextInputLayout>
+
+ </LinearLayout>
+</layout> \ No newline at end of file
diff --git a/src/main/res/menu/editaccount.xml b/src/main/res/menu/editaccount.xml
index 13e8db4a6..c476a3ed2 100644
--- a/src/main/res/menu/editaccount.xml
+++ b/src/main/res/menu/editaccount.xml
@@ -1,6 +1,12 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
+ <item
+ android:id="@+id/action_change_presence"
+ android:icon="@drawable/ic_new_releases_white_24dp"
+ android:title="@string/change_presence"
+ app:showAsAction="always" />
+
<item android:id="@+id/action_share"
android:title="@string/share_uri_with"
android:icon="?attr/icon_share"
@@ -22,12 +28,6 @@
</item>
<item
- android:id="@+id/action_change_presence"
- app:showAsAction="always"
- android:title="@string/change_presence"
- android:icon="@drawable/ic_new_releases_white_24dp" />
-
- <item
android:id="@+id/action_show_block_list"
app:showAsAction="always"
android:icon="@drawable/ic_speaker_notes_off_white_24dp"
diff --git a/src/main/res/menu/manageaccounts_context.xml b/src/main/res/menu/manageaccounts_context.xml
index a49b770df..7ea04fed2 100644
--- a/src/main/res/menu/manageaccounts_context.xml
+++ b/src/main/res/menu/manageaccounts_context.xml
@@ -3,9 +3,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
- android:id="@+id/mgmt_account_change_presence"
- android:title="@string/change_presence" />
- <item
android:id="@+id/mgmt_account_publish_avatar"
android:title="@string/mgmt_account_publish_avatar" />
<item