#1160 - Customize notification actions

This commit is contained in:
Moez Bhatti
2018-07-23 01:34:35 -04:00
parent bdba5ddaa7
commit 1a01171908
14 changed files with 183 additions and 58 deletions
@@ -53,7 +53,6 @@
android:id="@+id/notificationsO"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_notifications_black_24dp"
app:title="@string/settings_notifications_title"
tools:visibility="gone" />
@@ -61,12 +60,11 @@
android:id="@+id/notifications"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_notifications_black_24dp"
app:title="@string/settings_notifications_title"
app:widget="@layout/settings_switch_widget" />
<com.moez.QKSMS.common.widget.PreferenceView
android:id="@+id/notificationPreviews"
android:id="@+id/previews"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/settings_notification_previews_title"
@@ -86,6 +84,7 @@
app:title="@string/settings_ringtone_title" />
<View
android:id="@+id/actionsDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="8dp"
@@ -93,6 +92,41 @@
android:background="?android:attr/divider" />
<com.moez.QKSMS.common.widget.QkTextView
android:id="@+id/actionsTitle"
style="@style/PreferenceCategory"
android:text="@string/settings_notification_actions_title" />
<com.moez.QKSMS.common.widget.PreferenceView
android:id="@+id/action1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/settings_notification_action_1"
tools:summary="Mark read" />
<com.moez.QKSMS.common.widget.PreferenceView
android:id="@+id/action2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/settings_notification_action_2"
tools:summary="Reply" />
<com.moez.QKSMS.common.widget.PreferenceView
android:id="@+id/action3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/settings_notification_action_3"
tools:summary="None" />
<View
android:id="@+id/qkreplyDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="?android:attr/divider" />
<com.moez.QKSMS.common.widget.QkTextView
android:id="@+id/qkreplyTitle"
style="@style/PreferenceCategory"
android:text="@string/settings_category_qkreply" />
@@ -100,7 +134,6 @@
android:id="@+id/qkreply"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_reply_white_24dp"
app:summary="@string/settings_qkreply_summary"
app:title="@string/settings_qkreply_title"
app:widget="@layout/settings_switch_widget" />