diff options
author | Winson Chung <winsonc@google.com> | 2015-05-12 19:05:30 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2015-05-13 09:10:31 -0700 |
commit | 208ed75cfdb02e571273d73d056d8ed7f6f756eb (patch) | |
tree | 7996096c9fd3ad65a58f1ff6b254436195421dd2 /res | |
parent | 11509ad61afb7424ce83057b0d2a4b09f853651f (diff) | |
download | android_packages_apps_Trebuchet-208ed75cfdb02e571273d73d056d8ed7f6f756eb.tar.gz android_packages_apps_Trebuchet-208ed75cfdb02e571273d73d056d8ed7f6f756eb.tar.bz2 android_packages_apps_Trebuchet-208ed75cfdb02e571273d73d056d8ed7f6f756eb.zip |
Pulling out predictions into another row view.
Change-Id: Iba0d74457a1314cf0c00a88f9b07df049334e542
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/all_apps_button.xml | 2 | ||||
-rw-r--r-- | res/layout/application.xml | 2 | ||||
-rw-r--r-- | res/layout/apps_grid_icon_view.xml (renamed from res/layout/apps_grid_row_icon_view.xml) | 2 | ||||
-rw-r--r-- | res/layout/apps_list_view.xml | 43 | ||||
-rw-r--r-- | res/layout/apps_prediction_bar_icon_view.xml | 29 | ||||
-rw-r--r-- | res/layout/folder_application.xml | 2 | ||||
-rw-r--r-- | res/layout/folder_icon.xml | 2 | ||||
-rw-r--r-- | res/values/dimens.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 10 |
9 files changed, 63 insertions, 30 deletions
diff --git a/res/layout/all_apps_button.xml b/res/layout/all_apps_button.xml index 9d6d82bb2..68cc10932 100644 --- a/res/layout/all_apps_button.xml +++ b/res/layout/all_apps_button.xml @@ -15,5 +15,5 @@ --> <TextView xmlns:android="http://schemas.android.com/apk/res/android" - style="@style/WorkspaceIcon" + style="@style/Icon" android:focusable="true" /> diff --git a/res/layout/application.xml b/res/layout/application.xml index c21dea070..831cee5b0 100644 --- a/res/layout/application.xml +++ b/res/layout/application.xml @@ -15,5 +15,5 @@ --> <com.android.launcher3.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android" - style="@style/WorkspaceIcon" + style="@style/Icon" android:focusable="true" /> diff --git a/res/layout/apps_grid_row_icon_view.xml b/res/layout/apps_grid_icon_view.xml index acb3da334..67d7d50e7 100644 --- a/res/layout/apps_grid_row_icon_view.xml +++ b/res/layout/apps_grid_icon_view.xml @@ -16,7 +16,7 @@ <com.android.launcher3.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" - style="@style/WorkspaceIcon.AppsCustomize" + style="@style/Icon.AllApps" android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/res/layout/apps_list_view.xml b/res/layout/apps_list_view.xml index ddcb639b8..ef20323c1 100644 --- a/res/layout/apps_list_view.xml +++ b/res/layout/apps_list_view.xml @@ -13,20 +13,37 @@ See the License for the specific language governing permissions and limitations under the License. --> -<LinearLayout +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/apps_list" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" android:elevation="15dp" android:visibility="gone" android:focusableInTouchMode="true"> + <com.android.launcher3.AppsContainerRecyclerView + android:id="@+id/apps_list_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/apps_search_bar_height" + android:layout_gravity="center_horizontal|top" + android:clipToPadding="false" + android:focusable="true" + android:descendantFocusability="afterDescendants" /> + <LinearLayout + android:id="@+id/prediction_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/apps_search_bar_height" + android:orientation="horizontal" + android:visibility="invisible"> + </LinearLayout> + + <!-- We always want the search bar on top, so it goes last. --> <FrameLayout android:id="@+id/header" android:layout_width="match_parent" android:layout_height="@dimen/apps_search_bar_height" - android:orientation="horizontal" android:background="@drawable/apps_search_bg"> <LinearLayout android:id="@+id/app_search_container" @@ -40,8 +57,8 @@ android:layout_height="wrap_content" android:layout_gravity="start|center_vertical" android:layout_marginStart="4dp" - android:paddingTop="12dp" - android:paddingBottom="12dp" + android:paddingTop="13dp" + android:paddingBottom="13dp" android:contentDescription="@string/all_apps_button_label" android:src="@drawable/ic_arrow_back_grey" /> <com.android.launcher3.AppsContainerSearchEditTextView @@ -69,19 +86,9 @@ android:layout_height="wrap_content" android:layout_gravity="end|center_vertical" android:layout_marginEnd="6dp" - android:paddingTop="12dp" - android:paddingBottom="12dp" + android:paddingTop="13dp" + android:paddingBottom="13dp" android:contentDescription="@string/apps_view_search_bar_hint" android:src="@drawable/ic_search_grey" /> </FrameLayout> - <com.android.launcher3.AppsContainerRecyclerView - android:id="@+id/apps_list_view" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_gravity="center" - android:paddingTop="12dp" - android:paddingBottom="12dp" - android:clipToPadding="false" - android:focusable="true" - android:descendantFocusability="afterDescendants" /> -</LinearLayout>
\ No newline at end of file +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/apps_prediction_bar_icon_view.xml b/res/layout/apps_prediction_bar_icon_view.xml new file mode 100644 index 000000000..4a6f1574b --- /dev/null +++ b/res/layout/apps_prediction_bar_icon_view.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<com.android.launcher3.BubbleTextView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res-auto" + style="@style/Icon.AllApps" + android:id="@+id/icon" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_gravity="center" + android:layout_weight="1" + android:focusable="true" + android:background="@drawable/focusable_view_bg" + launcher:deferShadowGeneration="true" + launcher:iconDisplay="all_apps" /> + diff --git a/res/layout/folder_application.xml b/res/layout/folder_application.xml index b48b61331..4d003313e 100644 --- a/res/layout/folder_application.xml +++ b/res/layout/folder_application.xml @@ -15,5 +15,5 @@ --> <com.android.launcher3.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android" - style="@style/WorkspaceIcon.Folder" + style="@style/Icon.Folder" android:focusable="true" /> diff --git a/res/layout/folder_icon.xml b/res/layout/folder_icon.xml index fd45d7685..d9a7671af 100644 --- a/res/layout/folder_icon.xml +++ b/res/layout/folder_icon.xml @@ -28,7 +28,7 @@ android:antialias="true" android:src="@drawable/portal_ring_inner_holo"/> <com.android.launcher3.BubbleTextView - style="@style/WorkspaceIcon" + style="@style/Icon" android:id="@+id/folder_icon_name" android:layout_gravity="top" android:layout_width="match_parent" diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 90d709887..1a9254575 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -60,6 +60,7 @@ <dimen name="apps_view_fast_scroll_text_size">48dp</dimen> <dimen name="apps_search_bar_height">52dp</dimen> <dimen name="apps_icon_top_bottom_padding">8dp</dimen> + <dimen name="apps_prediction_icon_top_bottom_padding">12dp</dimen> <!-- Note: This needs to match the fixed insets for the search box. --> <dimen name="container_fixed_bounds_inset">8dp</dimen> diff --git a/res/values/styles.xml b/res/values/styles.xml index 16d4cbeed..78cc0837f 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -19,7 +19,7 @@ <resources> - <style name="WorkspaceIcon"> + <style name="Icon"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">match_parent</item> <item name="android:layout_gravity">center</item> @@ -32,11 +32,7 @@ <item name="android:fontFamily">sans-serif-condensed</item> </style> - <style name="WorkspaceIcon.Portrait"></style> - - <style name="WorkspaceIcon.Landscape"></style> - - <style name="WorkspaceIcon.AppsCustomize"> + <style name="Icon.AllApps"> <item name="android:background">@null</item> <item name="android:textColor">@color/quantum_panel_text_color</item> <item name="android:drawablePadding">@dimen/dynamic_grid_icon_drawable_padding</item> @@ -44,7 +40,7 @@ <item name="customShadows">false</item> </style> - <style name="WorkspaceIcon.Folder"> + <style name="Icon.Folder"> <item name="android:background">@null</item> <item name="android:textColor">@color/quantum_panel_text_color</item> <item name="android:shadowRadius">0</item> |