blob: 8c2010f89928011f8fe25f7e47782878bb8d02bd [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"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080034 android:elevation="2dp"
Peter Schiller310a9882016-06-30 13:52:36 -070035 android:focusable="false"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080036 android:visibility="invisible" />
37
38
39 <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
Peter Schiller310a9882016-06-30 13:52:36 -070040 android:id="@+id/main_content"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080041 android:layout_width="match_parent"
42 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080043 android:layout_gravity="center"
Peter Schiller310a9882016-06-30 13:52:36 -070044 android:elevation="15dp"
Winson Chungef7f8742015-06-04 17:18:17 -070045 android:focusable="true"
46 android:focusableInTouchMode="true"
Peter Schiller310a9882016-06-30 13:52:36 -070047 android:saveEnabled="false"
48 android:visibility="gone">
Winson Chungef7f8742015-06-04 17:18:17 -070049
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080050 <!-- DO NOT CHANGE THE ID -->
51 <com.android.launcher3.allapps.AllAppsRecyclerView
52 android:id="@+id/apps_list_view"
Winson Chungef7f8742015-06-04 17:18:17 -070053 android:layout_width="match_parent"
54 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080055 android:layout_gravity="center_horizontal|top"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080056 android:layout_marginTop="@dimen/all_apps_search_bar_height"
Peter Schiller310a9882016-06-30 13:52:36 -070057 android:clipToPadding="false"
58 android:descendantFocusability="afterDescendants"
59 android:focusable="true"
60 android:theme="@style/CustomOverscroll.Light" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080061
62 <LinearLayout
63 android:id="@+id/search_container"
Winson Chungef7f8742015-06-04 17:18:17 -070064 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080065 android:layout_height="@dimen/all_apps_search_bar_height"
Peter Schiller310a9882016-06-30 13:52:36 -070066 android:layout_gravity="center|top"
67 android:paddingLeft="@dimen/container_fastscroll_thumb_max_width"
68 android:paddingRight="@dimen/container_fastscroll_thumb_max_width"
69 android:background="@drawable/all_apps_search_bg"
70 android:gravity="center|bottom"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080071 android:orientation="horizontal"
Peter Schiller310a9882016-06-30 13:52:36 -070072 android:saveEnabled="false">
73
74 <ImageView
75 android:id="@+id/search_icon"
76 android:layout_width="wrap_content"
77 android:layout_height="match_parent"
78 android:scaleType="fitCenter"
79 android:layout_marginTop="@dimen/all_apps_search_bar_icon_margin_top"
80 android:paddingEnd="@dimen/all_apps_search_bar_icon_margin_right"
81 android:src="@drawable/ic_allapps_search" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080082
83 <com.android.launcher3.ExtendedEditText
84 android:id="@+id/search_box_input"
Peter Schiller310a9882016-06-30 13:52:36 -070085 android:layout_width="wrap_content"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080086 android:layout_height="match_parent"
87 android:background="@android:color/transparent"
88 android:focusableInTouchMode="true"
Peter Schiller310a9882016-06-30 13:52:36 -070089 android:gravity="start|center_vertical"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080090 android:hint="@string/all_apps_search_bar_hint"
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" />
99 </LinearLayout>
100
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>