aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-06-29 22:48:22 +0200
committerChristian Schneppe <christian@pix-art.de>2018-06-29 22:48:22 +0200
commit81ba0b467e17c901c9d25dbea2331c7a848c7034 (patch)
treedbc40e898673ad57addbcc3fde151b379a6f35d9 /src/main/res
parent70477c9fc9c6c6df45d2b921d920ec4070535bb4 (diff)
use TextInputLayout in quickedit dialog
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/layout/dialog_quickedit.xml34
-rw-r--r--src/main/res/layout/quickedit.xml19
-rw-r--r--src/main/res/values/strings.xml2
3 files changed, 36 insertions, 19 deletions
diff --git a/src/main/res/layout/dialog_quickedit.xml b/src/main/res/layout/dialog_quickedit.xml
new file mode 100644
index 000000000..273bcf1e9
--- /dev/null
+++ b/src/main/res/layout/dialog_quickedit.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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:paddingLeft="?attr/dialog_horizontal_padding"
+ android:paddingRight="?attr/dialog_horizontal_padding"
+ android:paddingTop="?attr/dialog_vertical_padding">
+
+ <android.support.design.widget.TextInputLayout
+ android:id="@+id/input_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:errorEnabled="true"
+ app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
+ app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
+
+ <android.support.design.widget.TextInputEditText
+ android:id="@+id/input_edit_text"
+ style="@style/Widget.Conversations.EditText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="textPersonName">
+
+ <requestFocus />
+ </android.support.design.widget.TextInputEditText>
+
+ </android.support.design.widget.TextInputLayout>
+ </LinearLayout>
+</layout> \ No newline at end of file
diff --git a/src/main/res/layout/quickedit.xml b/src/main/res/layout/quickedit.xml
deleted file mode 100644
index 0bf2cb5fe..000000000
--- a/src/main/res/layout/quickedit.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="16dp">
-
- <android.support.text.emoji.widget.EmojiEditText
- android:id="@+id/editor"
- style="@style/Widget.Conversations.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ems="10"
- android:inputType="textPersonName">
-
- <requestFocus />
- </android.support.text.emoji.widget.EmojiEditText>
-
-</LinearLayout> \ No newline at end of file
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index bd7d0e0e1..9d2828441 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -799,4 +799,6 @@
<string name="group_chat_avatar">Group chat avatar</string>
<string name="host_does_not_support_group_chat_avatars">Host does not support group chat avatars</string>
<string name="only_the_owner_can_change_group_chat_avatar">Only the owner can change group chat avatar</string>
+ <string name="contact_name">Contact name</string>
+ <string name="nickname_for_this_group_chat">Nickname for this group chat</string>
</resources>