From 49118e7e0103c7c72690ebd7dae40cae3a6f65ff Mon Sep 17 00:00:00 2001 From: Daniel Nishi Date: Mon, 27 Feb 2017 11:28:04 -0800 Subject: [PATCH] Add icons to the main static storage setting prefs. The dynamic user icons require more than just XML changes to successfully fetch the badged user icons and are coming in a future patch. Bug: 35801039 Test: Manual -- this is purely XML and comment changes. Change-Id: Id493c0335037a5c6e4f8b4734700611bfc0da7f1 --- res/drawable/ic_apps_vd_theme_24.xml | 25 ++++++++++++ res/drawable/ic_folder_vd_theme_24.xml | 25 ++++++++++++ res/drawable/ic_music_note_vd_theme_24.xml | 25 ++++++++++++ res/drawable/ic_photo_library_vd_theme_24.xml | 25 ++++++++++++ res/drawable/ic_system_update_vd_theme_24.xml | 25 ++++++++++++ res/drawable/ic_videogame_vd_theme_24.xml | 25 ++++++++++++ res/layout/storage_item.xml | 39 ++++++++++++++----- res/xml/storage_dashboard_fragment.xml | 6 +++ .../deviceinfo/StorageProfileFragment.java | 2 + .../storage/SecondaryUserController.java | 4 +- .../storage/UserProfileController.java | 1 + 11 files changed, 191 insertions(+), 11 deletions(-) create mode 100644 res/drawable/ic_apps_vd_theme_24.xml create mode 100644 res/drawable/ic_folder_vd_theme_24.xml create mode 100644 res/drawable/ic_music_note_vd_theme_24.xml create mode 100644 res/drawable/ic_photo_library_vd_theme_24.xml create mode 100644 res/drawable/ic_system_update_vd_theme_24.xml create mode 100644 res/drawable/ic_videogame_vd_theme_24.xml diff --git a/res/drawable/ic_apps_vd_theme_24.xml b/res/drawable/ic_apps_vd_theme_24.xml new file mode 100644 index 00000000000..ba59e838a96 --- /dev/null +++ b/res/drawable/ic_apps_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/drawable/ic_folder_vd_theme_24.xml b/res/drawable/ic_folder_vd_theme_24.xml new file mode 100644 index 00000000000..0d27773754d --- /dev/null +++ b/res/drawable/ic_folder_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/drawable/ic_music_note_vd_theme_24.xml b/res/drawable/ic_music_note_vd_theme_24.xml new file mode 100644 index 00000000000..f31b023c2d4 --- /dev/null +++ b/res/drawable/ic_music_note_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/drawable/ic_photo_library_vd_theme_24.xml b/res/drawable/ic_photo_library_vd_theme_24.xml new file mode 100644 index 00000000000..3cd97fcf0a3 --- /dev/null +++ b/res/drawable/ic_photo_library_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/drawable/ic_system_update_vd_theme_24.xml b/res/drawable/ic_system_update_vd_theme_24.xml new file mode 100644 index 00000000000..d68ea13774d --- /dev/null +++ b/res/drawable/ic_system_update_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/drawable/ic_videogame_vd_theme_24.xml b/res/drawable/ic_videogame_vd_theme_24.xml new file mode 100644 index 00000000000..8cb9c1c5274 --- /dev/null +++ b/res/drawable/ic_videogame_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/layout/storage_item.xml b/res/layout/storage_item.xml index 520f5cec58a..33f4f9ea617 100644 --- a/res/layout/storage_item.xml +++ b/res/layout/storage_item.xml @@ -15,22 +15,41 @@ --> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:gravity="center_vertical" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingTop="16dip" + android:paddingBottom="16dip" + android:background="?android:attr/selectableItemBackground"> + + + +