Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2016 The Android Open Source Project |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 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. --> |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 19 | <com.android.launcher3.allapps.AllAppsContainerView xmlns:android="http://schemas.android.com/apk/res/android" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 20 | xmlns:launcher="http://schemas.android.com/apk/res-auto" |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 21 | android:id="@+id/apps_view" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 24 | android:orientation="vertical" |
| 25 | launcher:revealBackground="@drawable/quantum_panel_shape"> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 26 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 27 | <View |
| 28 | android:id="@+id/reveal_view" |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 30 | android:layout_height="match_parent" |
| 31 | android:layout_gravity="center" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 32 | android:focusable="false" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 33 | android:visibility="invisible" /> |
| 34 | |
| 35 | |
| 36 | <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 37 | android:id="@+id/main_content" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 40 | android:layout_gravity="center" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 41 | android:focusable="true" |
| 42 | android:focusableInTouchMode="true" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 43 | android:saveEnabled="false" |
| 44 | android:visibility="gone"> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 45 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 46 | <!-- DO NOT CHANGE THE ID --> |
| 47 | <com.android.launcher3.allapps.AllAppsRecyclerView |
| 48 | android:id="@+id/apps_list_view" |
Jon Miranda | aca2145 | 2016-09-26 14:01:56 -0700 | [diff] [blame^] | 49 | android:layout_below="@+id/search_container" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 50 | android:layout_width="match_parent" |
| 51 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 52 | android:layout_gravity="center_horizontal|top" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 53 | android:clipToPadding="false" |
| 54 | android:descendantFocusability="afterDescendants" |
| 55 | android:focusable="true" |
| 56 | android:theme="@style/CustomOverscroll.Light" /> |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 57 | |
Sunny Goyal | 5024503 | 2016-07-13 14:24:18 -0700 | [diff] [blame] | 58 | <FrameLayout |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 59 | android:id="@+id/search_container" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 60 | android:layout_width="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 61 | android:layout_height="@dimen/all_apps_search_bar_height" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 62 | android:layout_gravity="center|top" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 63 | android:gravity="center|bottom" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 64 | android:orientation="horizontal" |
Winson | 1f06427 | 2016-07-18 17:18:02 -0700 | [diff] [blame] | 65 | android:saveEnabled="false"> |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 66 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 67 | <com.android.launcher3.ExtendedEditText |
| 68 | android:id="@+id/search_box_input" |
Sunny Goyal | 5024503 | 2016-07-13 14:24:18 -0700 | [diff] [blame] | 69 | android:layout_width="match_parent" |
Jon Miranda | aca2145 | 2016-09-26 14:01:56 -0700 | [diff] [blame^] | 70 | android:layout_height="@dimen/all_apps_search_bar_field_height" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 71 | android:background="@android:color/transparent" |
Jon Miranda | aca2145 | 2016-09-26 14:01:56 -0700 | [diff] [blame^] | 72 | android:layout_gravity="bottom" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 73 | android:focusableInTouchMode="true" |
Peter Schiller | 637e40a | 2016-07-19 16:01:32 -0700 | [diff] [blame] | 74 | android:gravity="center" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 75 | android:imeOptions="actionSearch|flagNoExtractUi" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 76 | android:inputType="text|textNoSuggestions|textCapWords" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 77 | android:maxLines="1" |
| 78 | android:scrollHorizontally="true" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 79 | android:singleLine="true" |
| 80 | android:textColor="#4c4c4c" |
Sunny Goyal | ce3fffb | 2016-07-21 10:42:30 -0700 | [diff] [blame] | 81 | android:hint="@string/all_apps_search_bar_hint" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 82 | android:textColorHint="@drawable/all_apps_search_hint" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 83 | android:textSize="16sp" /> |
Sunny Goyal | 5024503 | 2016-07-13 14:24:18 -0700 | [diff] [blame] | 84 | </FrameLayout> |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 85 | |
| 86 | </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView> |
Hyunyoung Song | e28bd7c | 2016-07-06 15:10:14 -0700 | [diff] [blame] | 87 | <View |
| 88 | android:id="@+id/nav_bar_bg" |
| 89 | android:layout_width="match_parent" |
| 90 | android:layout_height="0dp" |
| 91 | android:layout_gravity="bottom" |
Hyunyoung Song | 4ebc3d0 | 2016-08-05 10:59:17 -0700 | [diff] [blame] | 92 | android:background="@color/all_apps_navbar_color" |
Hyunyoung Song | e28bd7c | 2016-07-06 15:10:14 -0700 | [diff] [blame] | 93 | android:focusable="false" |
| 94 | android:visibility="invisible" /> |
Winson Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 95 | </com.android.launcher3.allapps.AllAppsContainerView> |