From 93f98eaf1800024cb2f28379bdd997f3debae63a Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Tue, 10 Mar 2015 16:28:47 -0700 Subject: Adding app grid layout with fastscroller. - Adding filtering and using alphabetic index for app grouping. Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff --- res/drawable/apps_list_fastscroll_bg.xml | 24 +++++++++++++++++ res/drawable/apps_list_scrollbar_thumb.xml | 21 +++++++++++++++ res/drawable/apps_list_search_bg.xml | 23 +++++++++++++++++ res/layout-sw600dp/apps_view.xml | 8 +++--- res/layout/apps_grid_row_icon_view.xml | 13 +++++++--- res/layout/apps_grid_row_view.xml | 38 --------------------------- res/layout/apps_list_reveal_view.xml | 2 +- res/layout/apps_list_row_icon_view.xml | 5 ++-- res/layout/apps_list_row_view.xml | 7 +++-- res/layout/apps_list_view.xml | 41 +++++++++++++++++++++++------- res/layout/apps_view.xml | 2 +- res/values-sw600dp/dimens.xml | 1 + res/values/attrs.xml | 1 + res/values/colors.xml | 4 +++ res/values/dimens.xml | 6 +++++ res/values/strings.xml | 4 +++ 16 files changed, 138 insertions(+), 62 deletions(-) create mode 100644 res/drawable/apps_list_fastscroll_bg.xml create mode 100644 res/drawable/apps_list_scrollbar_thumb.xml create mode 100644 res/drawable/apps_list_search_bg.xml delete mode 100644 res/layout/apps_grid_row_view.xml (limited to 'res') diff --git a/res/drawable/apps_list_fastscroll_bg.xml b/res/drawable/apps_list_fastscroll_bg.xml new file mode 100644 index 000000000..4ec18488b --- /dev/null +++ b/res/drawable/apps_list_fastscroll_bg.xml @@ -0,0 +1,24 @@ + + + + + + + \ No newline at end of file diff --git a/res/drawable/apps_list_scrollbar_thumb.xml b/res/drawable/apps_list_scrollbar_thumb.xml new file mode 100644 index 000000000..ddd65b231 --- /dev/null +++ b/res/drawable/apps_list_scrollbar_thumb.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/res/drawable/apps_list_search_bg.xml b/res/drawable/apps_list_search_bg.xml new file mode 100644 index 000000000..eda33a918 --- /dev/null +++ b/res/drawable/apps_list_search_bg.xml @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/res/layout-sw600dp/apps_view.xml b/res/layout-sw600dp/apps_view.xml index 1f773b307..3bb6ec505 100644 --- a/res/layout-sw600dp/apps_view.xml +++ b/res/layout-sw600dp/apps_view.xml @@ -23,12 +23,12 @@ android:descendantFocusability="afterDescendants"> \ No newline at end of file diff --git a/res/layout/apps_grid_row_icon_view.xml b/res/layout/apps_grid_row_icon_view.xml index 11c8eeb4d..81e74b985 100644 --- a/res/layout/apps_grid_row_icon_view.xml +++ b/res/layout/apps_grid_row_icon_view.xml @@ -13,10 +13,17 @@ See the License for the specific language governing permissions and limitations under the License. --> - + android:background="@drawable/focusable_view_bg" + launcher:deferShadowGeneration="true" /> + diff --git a/res/layout/apps_grid_row_view.xml b/res/layout/apps_grid_row_view.xml deleted file mode 100644 index bce43bc1b..000000000 --- a/res/layout/apps_grid_row_view.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - \ No newline at end of file diff --git a/res/layout/apps_list_reveal_view.xml b/res/layout/apps_list_reveal_view.xml index 4a26787c8..19e462bee 100644 --- a/res/layout/apps_list_reveal_view.xml +++ b/res/layout/apps_list_reveal_view.xml @@ -15,7 +15,7 @@ --> + launcher:layoutHorizontal="true" + launcher:deferShadowGeneration="true" /> diff --git a/res/layout/apps_list_row_view.xml b/res/layout/apps_list_row_view.xml index c4dcd0018..83c175bb8 100644 --- a/res/layout/apps_list_row_view.xml +++ b/res/layout/apps_list_row_view.xml @@ -26,9 +26,8 @@ android:layout_width="64dp" android:layout_height="match_parent" android:paddingLeft="16dp" - android:gravity="left|center_vertical" - android:textColor="#009688" - android:textSize="24sp" - android:textAllCaps="true" + android:gravity="start|center_vertical" + android:textColor="@color/apps_view_section_text_color" + android:textSize="@dimen/apps_view_section_text_size" android:focusable="false" /> \ No newline at end of file diff --git a/res/layout/apps_list_view.xml b/res/layout/apps_list_view.xml index b1b0f310b..dfb2fc42f 100644 --- a/res/layout/apps_list_view.xml +++ b/res/layout/apps_list_view.xml @@ -13,18 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> - \ No newline at end of file + android:visibility="gone"> + + + \ No newline at end of file diff --git a/res/layout/apps_view.xml b/res/layout/apps_view.xml index 19ad3d2c9..c1bae63f6 100644 --- a/res/layout/apps_view.xml +++ b/res/layout/apps_view.xml @@ -19,7 +19,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:padding="8dp" - android:background="#22000000" + android:background="@drawable/apps_customize_bg" android:descendantFocusability="afterDescendants"> diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index f7ad0c4cd..d9075872a 100644 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -18,6 +18,7 @@ 64dp + 480dp 76dp diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 4e7c59280..845b18230 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -24,6 +24,7 @@ + diff --git a/res/values/colors.xml b/res/values/colors.xml index 2daf9fe12..590a8872b 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -36,4 +36,8 @@ #FFFFFFFF #FF374248 + + #009688 + #009688 + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 013bd925b..9b4c56094 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -47,7 +47,13 @@ 12dip + 0dp + 52dp 64dp + 24sp + 48dp + 64dp + 48dp Choose widget to create + + + Search Apps + -- cgit v1.2.3