From e368fb0cc2627de3815eaa5660b2d2269b0e1aab Mon Sep 17 00:00:00 2001 From: LuLe73 Date: Mon, 28 May 2018 15:38:44 +0200 Subject: [PATCH] Conversion de Chatlist en RecyclerView terminee, selection + suppression terminee, desactivation de la TabBar+SideMenu durant le mode de selection --- AndroidManifest.xml | 4 +- build.gradle | 3 + .../src/org/linphone/tester/LogsActivity.java | 2 +- .../src/org/linphone/tester/MainActivity.java | 2 +- .../org/linphone/tester/SuitesActivity.java | 2 +- res/drawable/cancel_with_padding.xml | 11 + res/layout/chatlist.xml | 2 +- res/layout/context_bar.xml | 135 ++++++++++++ res/menu/edit_list_menu.xml | 76 +++---- res/values/styles.xml | 34 ++- .../linphone/activities/LinphoneActivity.java | 1 + .../assistant/CodecDownloaderFragment.java | 6 +- .../org/linphone/chat/ChatListFragment.java | 194 ++++++++++++------ .../org/linphone/chat/ChatRoomsAdapter.java | 87 +++++++- 14 files changed, 436 insertions(+), 123 deletions(-) create mode 100644 res/drawable/cancel_with_padding.xml create mode 100644 res/layout/context_bar.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index eb5f9c082..a12544872 100755 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -64,7 +64,9 @@ android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:label="@string/app_name" - android:largeHeap="true"> + android:largeHeap="true" + > + + + + + + + \ No newline at end of file diff --git a/res/layout/chatlist.xml b/res/layout/chatlist.xml index 82ec2e2dc..083fa8c68 100644 --- a/res/layout/chatlist.xml +++ b/res/layout/chatlist.xml @@ -54,7 +54,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/menu/edit_list_menu.xml b/res/menu/edit_list_menu.xml index e6e24d02f..08925286a 100644 --- a/res/menu/edit_list_menu.xml +++ b/res/menu/edit_list_menu.xml @@ -1,58 +1,34 @@ + android:background="@color/colorA" + android:height="100dp" + android:layout_width="0dp" + android:layout_height="100dp" + android:visibility="gone" + > - - - - - - - - - - + android:icon="@drawable/delete" + app:showAsAction="ifRoom" + android:orderInCategory="1000" + android:title=""/> + + \ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index 9e99915ca..852f186e5 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -5,16 +5,48 @@ @drawable/fast_scroll @android:color/white @drawable/fast_scroll_preview + true + + + + + + + + -