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" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 25 | android:paddingBottom="@dimen/container_bounds_inset" |
| 26 | android:paddingTop="@dimen/container_bounds_inset" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 27 | launcher:revealBackground="@drawable/quantum_panel_shape"> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 28 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 29 | <View |
| 30 | android:id="@+id/reveal_view" |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 32 | android:layout_height="match_parent" |
| 33 | android:layout_gravity="center" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 34 | android:elevation="2dp" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 35 | android:focusable="false" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 36 | android:visibility="invisible" /> |
| 37 | |
| 38 | |
| 39 | <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 40 | android:id="@+id/main_content" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 41 | android:layout_width="match_parent" |
| 42 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 43 | android:layout_gravity="center" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 44 | android:elevation="15dp" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 45 | android:focusable="true" |
| 46 | android:focusableInTouchMode="true" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 47 | android:saveEnabled="false" |
| 48 | android:visibility="gone"> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 49 | |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 50 | <!-- DO NOT CHANGE THE ID --> |
| 51 | <com.android.launcher3.allapps.AllAppsRecyclerView |
| 52 | android:id="@+id/apps_list_view" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 53 | android:layout_width="match_parent" |
| 54 | android:layout_height="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 55 | android:layout_gravity="center_horizontal|top" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 56 | android:layout_marginTop="@dimen/all_apps_search_bar_height" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 57 | android:clipToPadding="false" |
| 58 | android:descendantFocusability="afterDescendants" |
| 59 | android:focusable="true" |
| 60 | android:theme="@style/CustomOverscroll.Light" /> |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 61 | |
| 62 | <LinearLayout |
| 63 | android:id="@+id/search_container" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 64 | android:layout_width="match_parent" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 65 | android:layout_height="@dimen/all_apps_search_bar_height" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 66 | android:layout_gravity="center|top" |
| 67 | android:paddingLeft="@dimen/container_fastscroll_thumb_max_width" |
| 68 | android:paddingRight="@dimen/container_fastscroll_thumb_max_width" |
| 69 | android:background="@drawable/all_apps_search_bg" |
| 70 | android:gravity="center|bottom" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 71 | android:orientation="horizontal" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 72 | android:saveEnabled="false"> |
| 73 | |
| 74 | <ImageView |
| 75 | android:id="@+id/search_icon" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="match_parent" |
| 78 | android:scaleType="fitCenter" |
| 79 | android:layout_marginTop="@dimen/all_apps_search_bar_icon_margin_top" |
| 80 | android:paddingEnd="@dimen/all_apps_search_bar_icon_margin_right" |
| 81 | android:src="@drawable/ic_allapps_search" /> |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 82 | |
| 83 | <com.android.launcher3.ExtendedEditText |
| 84 | android:id="@+id/search_box_input" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 85 | android:layout_width="wrap_content" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 86 | android:layout_height="match_parent" |
| 87 | android:background="@android:color/transparent" |
| 88 | android:focusableInTouchMode="true" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 89 | android:gravity="start|center_vertical" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 90 | android:hint="@string/all_apps_search_bar_hint" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 91 | android:imeOptions="actionSearch|flagNoExtractUi" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 92 | android:inputType="text|textNoSuggestions|textCapWords" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 93 | android:maxLines="1" |
| 94 | android:scrollHorizontally="true" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 95 | android:singleLine="true" |
| 96 | android:textColor="#4c4c4c" |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame^] | 97 | android:textColorHint="@drawable/all_apps_search_hint" |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 98 | android:textSize="16sp" /> |
| 99 | </LinearLayout> |
| 100 | |
| 101 | </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView> |
Winson Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 102 | </com.android.launcher3.allapps.AllAppsContainerView> |