Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 16 | <!-- The top and bottom paddings are defined in this container, but since we want |
| 17 | the list view to span the full width (for touch interception purposes), we |
| 18 | will bake the left/right padding into that view's background itself. --> |
Winson Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 19 | <com.android.launcher3.allapps.AllAppsContainerView |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 21 | xmlns:launcher="http://schemas.android.com/apk/res-auto" |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 22 | android:id="@+id/apps_view" |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 25 | android:orientation="vertical" |
| 26 | launcher:revealBackground="@drawable/quantum_panel_shape"> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 27 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 28 | <View |
| 29 | android:id="@+id/reveal_view" |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 31 | android:layout_height="match_parent" |
| 32 | android:layout_gravity="center" |
| 33 | android:focusable="false" |
| 34 | android:elevation="2dp" |
| 35 | android:visibility="invisible" /> |
| 36 | |
| 37 | |
| 38 | <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="match_parent" |
| 41 | android:id="@+id/main_content" |
| 42 | android:visibility="gone" |
| 43 | android:layout_gravity="center" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 44 | android:focusable="true" |
| 45 | android:focusableInTouchMode="true" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 46 | android:elevation="15dp" > |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 47 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 48 | <!-- DO NOT CHANGE THE ID --> |
| 49 | <com.android.launcher3.allapps.AllAppsRecyclerView |
| 50 | android:id="@+id/apps_list_view" |
| 51 | android:theme="@style/Theme.Light.CustomOverscroll" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 54 | android:layout_gravity="center_horizontal|top" |
| 55 | android:clipToPadding="false" |
| 56 | android:focusable="true" |
| 57 | android:layout_marginTop="@dimen/all_apps_search_bar_height" |
| 58 | android:descendantFocusability="afterDescendants" /> |
| 59 | |
| 60 | <LinearLayout |
| 61 | android:id="@+id/search_container" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 62 | android:layout_width="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame^] | 63 | android:layout_height="@dimen/all_apps_search_bar_height" |
| 64 | android:layout_gravity="start|top" |
| 65 | android:orientation="horizontal" |
| 66 | android:background="@drawable/all_apps_search_bg" > |
| 67 | |
| 68 | <com.android.launcher3.ExtendedEditText |
| 69 | android:id="@+id/search_box_input" |
| 70 | android:layout_width="match_parent" |
| 71 | android:layout_height="match_parent" |
| 72 | android:background="@android:color/transparent" |
| 73 | android:focusableInTouchMode="true" |
| 74 | android:gravity="fill_horizontal|center_vertical" |
| 75 | android:hint="@string/all_apps_search_bar_hint" |
| 76 | android:inputType="text|textNoSuggestions|textCapWords" |
| 77 | android:imeOptions="actionSearch|flagNoExtractUi" |
| 78 | android:maxLines="1" |
| 79 | android:scrollHorizontally="true" |
| 80 | android:layout_marginLeft="@dimen/container_fastscroll_thumb_max_width" |
| 81 | android:layout_marginRight="@dimen/container_fastscroll_thumb_max_width" |
| 82 | android:singleLine="true" |
| 83 | android:textColor="#4c4c4c" |
| 84 | android:textColorHint="#9c9c9c" |
| 85 | android:textSize="16sp" /> |
| 86 | </LinearLayout> |
| 87 | |
| 88 | </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView> |
Winson Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 89 | </com.android.launcher3.allapps.AllAppsContainerView> |