Dynamically build conversation long press menu

This commit is contained in:
Moez Bhatti
2017-12-16 16:49:06 -05:00
parent 265d3666d5
commit 95e4a365e6
9 changed files with 149 additions and 44 deletions
@@ -0,0 +1,18 @@
<?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="wrap_content"
android:background="@drawable/ripple"
android:orientation="vertical">
<com.moez.QKSMS.presentation.common.widget.QkTextView
android:id="@+id/title"
style="@style/TextPrimary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="12dp"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingTop="12dp" />
</LinearLayout>
+2 -8
View File
@@ -10,8 +10,8 @@
<string name="title_compose">Type a name or number</string>
<string name="menu_call">Call</string>
<string name="menu_archive">Archive</string>
<string name="menu_unarchive">Unarchive</string>
<string name="menu_archive">Archive conversation</string>
<string name="menu_unarchive">Remove from archive</string>
<string name="menu_delete">Delete</string>
<string name="compose_hint">Write a message</string>
@@ -54,12 +54,6 @@
<string name="toast_archived">Archived conversation</string>
<string name="toast_unarchived">Moved to inbox</string>
<string-array name="conversation_options">
<item>Archive conversation</item>
<item>Remove from archive</item>
<item>Delete</item>
</string-array>
<string-array name="message_options">
<item>Copy text</item>
<item>Forward</item>