blob: 03c8d82293e6f196656c8b45d50f7503d8507d6a [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"
25 launcher:revealBackground="@drawable/quantum_panel_shape">
Winson Chungef7f8742015-06-04 17:18:17 -070026
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080027 <View
28 android:id="@+id/reveal_view"
Winson Chungaa2ab252015-03-16 12:39:05 -070029 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080030 android:layout_height="match_parent"
31 android:layout_gravity="center"
Peter Schiller310a9882016-06-30 13:52:36 -070032 android:focusable="false"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080033 android:visibility="invisible" />
34
35
36 <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
Peter Schiller310a9882016-06-30 13:52:36 -070037 android:id="@+id/main_content"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080038 android:layout_width="match_parent"
39 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080040 android:layout_gravity="center"
Winson Chungef7f8742015-06-04 17:18:17 -070041 android:focusable="true"
42 android:focusableInTouchMode="true"
Peter Schiller310a9882016-06-30 13:52:36 -070043 android:saveEnabled="false"
44 android:visibility="gone">
Winson Chungef7f8742015-06-04 17:18:17 -070045
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080046 <!-- DO NOT CHANGE THE ID -->
47 <com.android.launcher3.allapps.AllAppsRecyclerView
48 android:id="@+id/apps_list_view"
Winson Chungef7f8742015-06-04 17:18:17 -070049 android:layout_width="match_parent"
50 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080051 android:layout_gravity="center_horizontal|top"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080052 android:layout_marginTop="@dimen/all_apps_search_bar_height"
Peter Schiller310a9882016-06-30 13:52:36 -070053 android:clipToPadding="false"
54 android:descendantFocusability="afterDescendants"
55 android:focusable="true"
56 android:theme="@style/CustomOverscroll.Light" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080057
Sunny Goyal50245032016-07-13 14:24:18 -070058 <FrameLayout
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080059 android:id="@+id/search_container"
Winson Chungef7f8742015-06-04 17:18:17 -070060 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080061 android:layout_height="@dimen/all_apps_search_bar_height"
Peter Schiller310a9882016-06-30 13:52:36 -070062 android:layout_gravity="center|top"
Winson1f064272016-07-18 17:18:02 -070063 android:paddingTop="@dimen/all_apps_search_bar_margin_top"
Peter Schiller310a9882016-06-30 13:52:36 -070064 android:gravity="center|bottom"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080065 android:orientation="horizontal"
Winson1f064272016-07-18 17:18:02 -070066 android:saveEnabled="false">
Peter Schiller310a9882016-06-30 13:52:36 -070067
Sunny Goyal50245032016-07-13 14:24:18 -070068 <TextView
Peter Schiller310a9882016-06-30 13:52:36 -070069 android:layout_width="wrap_content"
70 android:layout_height="match_parent"
Sunny Goyal50245032016-07-13 14:24:18 -070071 android:gravity="center_vertical"
72 android:id="@+id/search_hint"
73 android:layout_gravity="center_horizontal"
74 android:drawablePadding="@dimen/all_apps_search_bar_icon_margin_right"
75 android:drawableStart="@drawable/ic_allapps_search"
76 android:text="@string/all_apps_search_bar_hint"
77 android:textColor="@drawable/all_apps_search_hint"
78 android:textSize="16sp" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080079
80 <com.android.launcher3.ExtendedEditText
81 android:id="@+id/search_box_input"
Sunny Goyal50245032016-07-13 14:24:18 -070082 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080083 android:layout_height="match_parent"
84 android:background="@android:color/transparent"
85 android:focusableInTouchMode="true"
Peter Schiller637e40a2016-07-19 16:01:32 -070086 android:gravity="center"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080087 android:imeOptions="actionSearch|flagNoExtractUi"
Peter Schiller310a9882016-06-30 13:52:36 -070088 android:inputType="text|textNoSuggestions|textCapWords"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080089 android:maxLines="1"
90 android:scrollHorizontally="true"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080091 android:singleLine="true"
92 android:textColor="#4c4c4c"
Peter Schiller310a9882016-06-30 13:52:36 -070093 android:textColorHint="@drawable/all_apps_search_hint"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080094 android:textSize="16sp" />
Sunny Goyal50245032016-07-13 14:24:18 -070095 </FrameLayout>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080096
97 </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -070098 <View
99 android:id="@+id/nav_bar_bg"
100 android:layout_width="match_parent"
101 android:layout_height="0dp"
102 android:layout_gravity="bottom"
103 android:background="@android:color/black"
104 android:elevation="16dp"
105 android:focusable="false"
106 android:visibility="invisible" />
Winson Chung5f4e0fd2015-05-22 11:12:27 -0700107</com.android.launcher3.allapps.AllAppsContainerView>