blob: ad1fa828092df29911a33c5ba177fdd8e1e193ed [file] [log] [blame]
Winson Chungb745afb2015-03-02 11:51:23 -08001<?xml version="1.0" encoding="utf-8"?>
Peter Schiller310a9882016-06-30 13:52:36 -07002<!-- Copyright (C) 2016 The Android Open Source Project
Winson Chungb745afb2015-03-02 11:51:23 -08003
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. -->
Peter Schiller310a9882016-06-30 13:52:36 -070019<com.android.launcher3.allapps.AllAppsContainerView xmlns:android="http://schemas.android.com/apk/res/android"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080020 xmlns:launcher="http://schemas.android.com/apk/res-auto"
Winson Chungb745afb2015-03-02 11:51:23 -080021 android:id="@+id/apps_view"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080024 android:orientation="vertical"
Peter Schiller310a9882016-06-30 13:52:36 -070025 android:paddingBottom="@dimen/container_bounds_inset"
26 android:paddingTop="@dimen/container_bounds_inset"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080027 launcher:revealBackground="@drawable/quantum_panel_shape">
Winson Chungef7f8742015-06-04 17:18:17 -070028
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080029 <View
30 android:id="@+id/reveal_view"
Winson Chungaa2ab252015-03-16 12:39:05 -070031 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080032 android:layout_height="match_parent"
33 android:layout_gravity="center"
Peter Schiller310a9882016-06-30 13:52:36 -070034 android:focusable="false"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080035 android:visibility="invisible" />
36
37
38 <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
Peter Schiller310a9882016-06-30 13:52:36 -070039 android:id="@+id/main_content"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080040 android:layout_width="match_parent"
41 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080042 android:layout_gravity="center"
Winson Chungef7f8742015-06-04 17:18:17 -070043 android:focusable="true"
44 android:focusableInTouchMode="true"
Peter Schiller310a9882016-06-30 13:52:36 -070045 android:saveEnabled="false"
46 android:visibility="gone">
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"
Winson Chungef7f8742015-06-04 17:18:17 -070051 android:layout_width="match_parent"
52 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080053 android:layout_gravity="center_horizontal|top"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080054 android:layout_marginTop="@dimen/all_apps_search_bar_height"
Peter Schiller310a9882016-06-30 13:52:36 -070055 android:clipToPadding="false"
56 android:descendantFocusability="afterDescendants"
57 android:focusable="true"
58 android:theme="@style/CustomOverscroll.Light" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080059
Sunny Goyal50245032016-07-13 14:24:18 -070060 <FrameLayout
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080061 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"
Peter Schiller310a9882016-06-30 13:52:36 -070064 android:layout_gravity="center|top"
65 android:paddingLeft="@dimen/container_fastscroll_thumb_max_width"
66 android:paddingRight="@dimen/container_fastscroll_thumb_max_width"
Peter Schiller310a9882016-06-30 13:52:36 -070067 android:gravity="center|bottom"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080068 android:orientation="horizontal"
Sunny Goyal50245032016-07-13 14:24:18 -070069 android:saveEnabled="false"
70 android:paddingTop="@dimen/all_apps_search_bar_margin_top" >
Peter Schiller310a9882016-06-30 13:52:36 -070071
Sunny Goyal50245032016-07-13 14:24:18 -070072 <TextView
Peter Schiller310a9882016-06-30 13:52:36 -070073 android:layout_width="wrap_content"
74 android:layout_height="match_parent"
Sunny Goyal50245032016-07-13 14:24:18 -070075 android:gravity="center_vertical"
76 android:id="@+id/search_hint"
77 android:layout_gravity="center_horizontal"
78 android:drawablePadding="@dimen/all_apps_search_bar_icon_margin_right"
79 android:drawableStart="@drawable/ic_allapps_search"
80 android:text="@string/all_apps_search_bar_hint"
81 android:textColor="@drawable/all_apps_search_hint"
82 android:textSize="16sp" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080083
84 <com.android.launcher3.ExtendedEditText
85 android:id="@+id/search_box_input"
Sunny Goyal50245032016-07-13 14:24:18 -070086 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080087 android:layout_height="match_parent"
88 android:background="@android:color/transparent"
89 android:focusableInTouchMode="true"
Peter Schiller310a9882016-06-30 13:52:36 -070090 android:gravity="start|center_vertical"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080091 android:imeOptions="actionSearch|flagNoExtractUi"
Peter Schiller310a9882016-06-30 13:52:36 -070092 android:inputType="text|textNoSuggestions|textCapWords"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080093 android:maxLines="1"
94 android:scrollHorizontally="true"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080095 android:singleLine="true"
96 android:textColor="#4c4c4c"
Peter Schiller310a9882016-06-30 13:52:36 -070097 android:textColorHint="@drawable/all_apps_search_hint"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080098 android:textSize="16sp" />
Sunny Goyal50245032016-07-13 14:24:18 -070099 </FrameLayout>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -0800100
101 </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -0700102 <View
103 android:id="@+id/nav_bar_bg"
104 android:layout_width="match_parent"
105 android:layout_height="0dp"
106 android:layout_gravity="bottom"
107 android:background="@android:color/black"
108 android:elevation="16dp"
109 android:focusable="false"
110 android:visibility="invisible" />
Winson Chung5f4e0fd2015-05-22 11:12:27 -0700111</com.android.launcher3.allapps.AllAppsContainerView>