Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 1 | <?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 Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 16 | <!-- 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 Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 19 | <com.android.launcher3.allapps.AllAppsContainerView |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | android:id="@+id/apps_view" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 24 | android:orientation="vertical"> |
| 25 | |
| 26 | <!-- Both android:focusable and android:focusableInTouchMode are needed for |
| 27 | the view to get focus change events. --> |
| 28 | <FrameLayout |
| 29 | android:id="@+id/search_box_container" |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 31 | android:layout_height="wrap_content" |
| 32 | android:focusable="true" |
| 33 | android:focusableInTouchMode="true" |
| 34 | android:visibility="gone" /> |
| 35 | |
| 36 | <FrameLayout |
| 37 | android:id="@+id/content" |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 38 | android:layout_width="match_parent" |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 39 | android:layout_height="0dp" |
| 40 | android:layout_weight="1"> |
| 41 | <FrameLayout |
| 42 | android:id="@+id/all_apps_reveal" |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="match_parent" |
| 45 | android:layout_gravity="center" |
| 46 | android:focusable="false" |
| 47 | android:elevation="2dp" |
| 48 | android:visibility="invisible" /> |
| 49 | <include |
| 50 | layout="@layout/all_apps_container" |
| 51 | android:id="@+id/all_apps_container" |
| 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="match_parent" |
| 54 | android:layout_gravity="center" |
| 55 | android:visibility="gone" /> |
| 56 | </FrameLayout> |
Winson Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 57 | </com.android.launcher3.allapps.AllAppsContainerView> |