From 15ff0fca2b56c18e0dd5a88f030d8809d52fcad4 Mon Sep 17 00:00:00 2001 From: Erik Duisters Date: Sun, 9 Dec 2018 18:17:20 +0100 Subject: [PATCH] Make DeviceFragments listview use full screen width so the over scroll indicator looks better Summary: Make DeviceFragments listview use full screen width so the over scroll indicator looks better | {F6466146} | {F6466147} | | before | after | Test Plan: Apply patch and notice that the layout of the list elements has remained the same as before Reviewers: #kde_connect, nicolasfella Reviewed By: #kde_connect, nicolasfella Subscribers: nicolasfella, kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D17456 --- .../divider_horizontal_holo_light.9.png | Bin 0 -> 164 bytes res/drawable-v21/list_divider.xml | 6 ++ res/drawable/list_divider.xml | 6 ++ res/layout/activity_device.xml | 28 +++--- res/layout/list_item_with_icon_entry.xml | 83 +++++++++--------- .../UserInterface/DeviceFragment.java | 5 +- .../{ => List}/FailedPluginListItem.java | 9 +- .../UserInterface/List/SmallEntryItem.java | 6 ++ 8 files changed, 81 insertions(+), 62 deletions(-) create mode 100644 res/drawable-hdpi/divider_horizontal_holo_light.9.png create mode 100644 res/drawable-v21/list_divider.xml create mode 100644 res/drawable/list_divider.xml rename src/org/kde/kdeconnect/UserInterface/{ => List}/FailedPluginListItem.java (81%) diff --git a/res/drawable-hdpi/divider_horizontal_holo_light.9.png b/res/drawable-hdpi/divider_horizontal_holo_light.9.png new file mode 100644 index 0000000000000000000000000000000000000000..ea38ebbb390cd17acc56ae246e200c4bfe0b6184 GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^>_E)H!3HEvS)PI@&H|6fVg?58P7r1^KY4mBP%zBX z#W93qW^VsR-U9|4Ed58g10qCb9&nxV_qfMX&Y((;J3BfA)i3^8I9;x+M)qAFLyzIS z4=!uJ+9v&Q4?8<`$9jfK)%zD`uJvRz*lfI7mtobcQzy()nbsQ$Z+<)Zp9# + \ No newline at end of file diff --git a/res/drawable/list_divider.xml b/res/drawable/list_divider.xml new file mode 100644 index 00000000..c9a33827 --- /dev/null +++ b/res/drawable/list_divider.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/res/layout/activity_device.xml b/res/layout/activity_device.xml index f7d4466f..d00dcea2 100644 --- a/res/layout/activity_device.xml +++ b/res/layout/activity_device.xml @@ -5,7 +5,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:padding="@dimen/activity_vertical_margin" tools:context="org.kde.kdeconnect.UserInterface.DeviceFragment"> + android:orientation="vertical" + android:padding="@dimen/activity_vertical_margin" + android:visibility="gone"> + android:visibility="gone"/> + android:textAppearance="?android:attr/textAppearanceMedium"/>