#874 - Multi selection for conversations

This commit is contained in:
Moez Bhatti
2018-05-02 16:16:40 -04:00
parent f005be1e0b
commit e4bd882f35
30 changed files with 423 additions and 202 deletions
@@ -18,7 +18,7 @@
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple_material_light">
android:color="@color/rippleLight">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
@@ -30,10 +30,7 @@
<item>
<selector>
<item android:state_selected="true">
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="2dp" />
</shape>
<color android:color="@color/separatorLight" />
</item>
<item>
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
~
~ QKSMS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ QKSMS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/rippleDark">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="2dp" />
</shape>
</item>
<item>
<selector>
<item android:state_selected="true">
<color android:color="@color/separatorDark" />
</item>
<item>
<color android:color="@android:color/transparent" />
</item>
</selector>
</item>
</ripple>
@@ -32,6 +32,7 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
android:animateLayoutChanges="true"
android:focusable="true"
android:focusableInTouchMode="true"
app:layout_constraintEnd_toEndOf="parent"
@@ -39,11 +40,16 @@
app:layout_constraintTop_toTopOf="parent"
tools:background="@color/white">
<common.widget.QkTextView
android:id="@+id/toolbarTitle"
style="@style/ToolbarText" />
<common.widget.QkEditText
android:id="@+id/toolbarSearch"
style="@style/ToolbarText"
android:hint="@string/title_conversations"
app:textColorHint="tertiary"
tools:hint="Search something"
app:textSize="primary"
tools:textSize="16sp" />
</android.support.v7.widget.Toolbar>
+25 -4
View File
@@ -21,10 +21,31 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/clear"
android:icon="@drawable/ic_cancel_black_24dp"
android:title="@string/menu_clear"
android:id="@+id/archive"
android:icon="@drawable/ic_archive_black_24dp"
android:title="@string/main_menu_archive"
android:visible="false"
app:showAsAction="always" />
app:showAsAction="ifRoom" />
<item
android:id="@+id/unarchive"
android:icon="@drawable/ic_archive_black_24dp"
android:title="@string/main_menu_unarchive"
android:visible="false"
app:showAsAction="ifRoom" />
<item
android:id="@+id/block"
android:icon="@drawable/ic_block_black_24dp"
android:title="@string/main_menu_block"
android:visible="false"
app:showAsAction="never" />
<item
android:id="@+id/delete"
android:icon="@drawable/ic_delete_black_24dp"
android:title="@string/main_menu_delete"
android:visible="false"
app:showAsAction="never" />
</menu>
@@ -21,6 +21,9 @@
<color name="white">#FFFFFF</color>
<color name="black">#000000</color>
<color name="rippleLight">#1f000000</color>
<color name="rippleDark">#33ffffff</color>
<color name="statusBarLight">#F7F7F7</color>
<color name="statusBarDark">#1a1e22</color>
+10 -10
View File
@@ -34,13 +34,22 @@
<string name="setup_skip">Skip</string>
<string name="setup_next">Continue</string>
<string name="menu_clear">Clear</string>
<string name="menu_call">Call</string>
<string name="menu_info">Details</string>
<string name="menu_save">Save image</string>
<string name="main_title_selected">%d selected</string>
<string name="main_menu_clear">Clear</string>
<string name="main_menu_archive">Archive</string>
<string name="main_menu_unarchive">Unarchive</string>
<string name="main_menu_block">Block</string>
<string name="main_menu_delete">Delete</string>
<string name="main_syncing">Optimizing database, this might take a minute…</string>
<string name="main_sender_you">You: %s</string>
<string name="inbox_empty_text">Your conversations will appear here</string>
<string name="inbox_search_empty_text">No results</string>
<string name="archived_empty_text">Your archived conversations will appear here</string>
<string name="scheduled_empty_text">Your scheduled messages will appear here</string>
<string name="drawer_inbox">Inbox</string>
<string name="drawer_archived">Archived</string>
@@ -55,15 +64,6 @@
<string name="rate_okay">OKAY!</string>
<string name="rate_dismiss">DISMISS</string>
<string name="inbox_empty_text">Your conversations will appear here</string>
<string name="inbox_search_empty_text">No results</string>
<string name="inbox_menu_archive">Archive</string>
<string name="inbox_menu_unarchive">Unarchive</string>
<string name="inbox_menu_block">Block</string>
<string name="inbox_menu_delete">Delete</string>
<string name="archived_empty_text">Your archived conversations will appear here</string>
<string name="scheduled_empty_text">Your scheduled messages will appear here</string>
<string name="dialog_delete_title">Delete</string>
<string name="dialog_delete_message">Are you sure you would like to delete this conversation?</string>