blob: c31c871e54a04be3f7081e1c7eedd4d34c1984d3 [file] [log] [blame]
Winson Chungb745afb2015-03-02 11:51:23 -08001<?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 Chungaa2ab252015-03-16 12:39:05 -070016<!-- 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 Chung5f4e0fd2015-05-22 11:12:27 -070019<com.android.launcher3.allapps.AllAppsContainerView
Winson Chungb745afb2015-03-02 11:51:23 -080020 xmlns:android="http://schemas.android.com/apk/res/android"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080021 xmlns:launcher="http://schemas.android.com/apk/res-auto"
Winson Chungb745afb2015-03-02 11:51:23 -080022 android:id="@+id/apps_view"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080025 android:orientation="vertical"
26 launcher:revealBackground="@drawable/quantum_panel_shape">
Winson Chungef7f8742015-06-04 17:18:17 -070027
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080028 <View
29 android:id="@+id/reveal_view"
Winson Chungaa2ab252015-03-16 12:39:05 -070030 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080031 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 Chungef7f8742015-06-04 17:18:17 -070044 android:focusable="true"
45 android:focusableInTouchMode="true"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080046 android:elevation="15dp" >
Winson Chungef7f8742015-06-04 17:18:17 -070047
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080048 <!-- DO NOT CHANGE THE ID -->
49 <com.android.launcher3.allapps.AllAppsRecyclerView
50 android:id="@+id/apps_list_view"
Sunny Goyal8390eb12016-02-11 14:29:20 -080051 android:theme="@style/CustomOverscroll.Light"
Winson Chungef7f8742015-06-04 17:18:17 -070052 android:layout_width="match_parent"
53 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080054 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 Chungef7f8742015-06-04 17:18:17 -070062 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080063 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 Chung5f4e0fd2015-05-22 11:12:27 -070089</com.android.launcher3.allapps.AllAppsContainerView>