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 --> 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. --> 19 <com.android.launcher3.allapps.AllAppsContainerView 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:launcher="http://schemas.android.com/apk/res-auto" 22 android:id="@+id/apps_view" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:orientation="vertical" 26 launcher:revealBackground="@drawable/quantum_panel_shape"> 27 28 <View 29 android:id="@+id/reveal_view" 30 android:layout_width="match_parent" 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:saveEnabled="false" 43 android:visibility="gone" 44 android:layout_gravity="center" 45 android:focusable="true" 46 android:focusableInTouchMode="true" 47 android:elevation="15dp" > 48 49 <!-- DO NOT CHANGE THE ID --> 50 <com.android.launcher3.allapps.AllAppsRecyclerView 51 android:id="@+id/apps_list_view" 52 android:theme="@style/Theme.Light.CustomOverscroll" 53 android:layout_width="match_parent" 54 android:layout_height="match_parent" 55 android:layout_gravity="center_horizontal|top" 56 android:clipToPadding="false" 57 android:focusable="true" 58 android:layout_marginTop="@dimen/all_apps_search_bar_height" 59 android:descendantFocusability="afterDescendants" /> 60 61 <LinearLayout 62 android:id="@+id/search_container" 63 android:layout_width="match_parent" 64 android:saveEnabled="false" 65 android:layout_height="@dimen/all_apps_search_bar_height" 66 android:layout_gravity="start|top" 67 android:orientation="horizontal" 68 android:background="@drawable/all_apps_search_bg" > 69 70 <com.android.launcher3.ExtendedEditText 71 android:id="@+id/search_box_input" 72 android:layout_width="match_parent" 73 android:layout_height="match_parent" 74 android:background="@android:color/transparent" 75 android:focusableInTouchMode="true" 76 android:gravity="fill_horizontal|center_vertical" 77 android:hint="@string/all_apps_search_bar_hint" 78 android:inputType="text|textNoSuggestions|textCapWords" 79 android:imeOptions="actionSearch|flagNoExtractUi" 80 android:maxLines="1" 81 android:scrollHorizontally="true" 82 android:layout_marginLeft="@dimen/container_fastscroll_thumb_max_width" 83 android:layout_marginRight="@dimen/container_fastscroll_thumb_max_width" 84 android:singleLine="true" 85 android:textColor="#4c4c4c" 86 android:textColorHint="#9c9c9c" 87 android:textSize="16sp" /> 88 </LinearLayout> 89 90 </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView> 91 </com.android.launcher3.allapps.AllAppsContainerView>