blob: 1b843ed7d676efc5f09cb2a2d171f8a454c70981 [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 Goyal05c8c572016-03-17 11:57:24 -070025 android:paddingTop="@dimen/container_bounds_inset"
26 android:paddingBottom="@dimen/container_bounds_inset"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080027 android:orientation="vertical"
28 launcher:revealBackground="@drawable/quantum_panel_shape">
Winson Chungef7f8742015-06-04 17:18:17 -070029
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080030 <View
31 android:id="@+id/reveal_view"
Winson Chungaa2ab252015-03-16 12:39:05 -070032 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080033 android:layout_height="match_parent"
34 android:layout_gravity="center"
35 android:focusable="false"
36 android:elevation="2dp"
37 android:visibility="invisible" />
38
39
40 <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
41 android:layout_width="match_parent"
42 android:layout_height="match_parent"
43 android:id="@+id/main_content"
Sunny Goyalbb702582016-02-11 10:07:36 -080044 android:saveEnabled="false"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080045 android:visibility="gone"
46 android:layout_gravity="center"
Winson Chungef7f8742015-06-04 17:18:17 -070047 android:focusable="true"
48 android:focusableInTouchMode="true"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080049 android:elevation="15dp" >
Winson Chungef7f8742015-06-04 17:18:17 -070050
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080051 <!-- DO NOT CHANGE THE ID -->
52 <com.android.launcher3.allapps.AllAppsRecyclerView
53 android:id="@+id/apps_list_view"
Sunny Goyal8390eb12016-02-11 14:29:20 -080054 android:theme="@style/CustomOverscroll.Light"
Winson Chungef7f8742015-06-04 17:18:17 -070055 android:layout_width="match_parent"
56 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080057 android:layout_gravity="center_horizontal|top"
58 android:clipToPadding="false"
59 android:focusable="true"
60 android:layout_marginTop="@dimen/all_apps_search_bar_height"
61 android:descendantFocusability="afterDescendants" />
62
63 <LinearLayout
64 android:id="@+id/search_container"
Winson Chungef7f8742015-06-04 17:18:17 -070065 android:layout_width="match_parent"
Sunny Goyalbb702582016-02-11 10:07:36 -080066 android:saveEnabled="false"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080067 android:layout_height="@dimen/all_apps_search_bar_height"
68 android:layout_gravity="start|top"
69 android:orientation="horizontal"
70 android:background="@drawable/all_apps_search_bg" >
71
72 <com.android.launcher3.ExtendedEditText
73 android:id="@+id/search_box_input"
74 android:layout_width="match_parent"
75 android:layout_height="match_parent"
76 android:background="@android:color/transparent"
77 android:focusableInTouchMode="true"
78 android:gravity="fill_horizontal|center_vertical"
79 android:hint="@string/all_apps_search_bar_hint"
80 android:inputType="text|textNoSuggestions|textCapWords"
81 android:imeOptions="actionSearch|flagNoExtractUi"
82 android:maxLines="1"
83 android:scrollHorizontally="true"
84 android:layout_marginLeft="@dimen/container_fastscroll_thumb_max_width"
85 android:layout_marginRight="@dimen/container_fastscroll_thumb_max_width"
86 android:singleLine="true"
87 android:textColor="#4c4c4c"
88 android:textColorHint="#9c9c9c"
89 android:textSize="16sp" />
90 </LinearLayout>
91
92 </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
Winson Chung5f4e0fd2015-05-22 11:12:27 -070093</com.android.launcher3.allapps.AllAppsContainerView>