Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 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 -->
     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. -->
     19 <com.android.launcher3.allapps.AllAppsContainerView xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:launcher="http://schemas.android.com/apk/res-auto"
     21     android:id="@+id/apps_view"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent"
     24     android:orientation="vertical"
     25     launcher:revealBackground="@drawable/round_rect_primary">
     26 
     27     <View
     28         android:id="@+id/reveal_view"
     29         android:layout_width="match_parent"
     30         android:layout_height="match_parent"
     31         android:layout_gravity="center"
     32         android:focusable="false"
     33         android:visibility="invisible" />
     34 
     35 
     36     <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
     37         android:id="@+id/main_content"
     38         android:layout_width="match_parent"
     39         android:layout_height="match_parent"
     40         android:layout_gravity="center"
     41         android:focusable="true"
     42         android:focusableInTouchMode="true"
     43         android:saveEnabled="false"
     44         android:visibility="gone">
     45 
     46         <!-- DO NOT CHANGE THE ID -->
     47         <com.android.launcher3.allapps.AllAppsRecyclerView
     48             android:id="@+id/apps_list_view"
     49             android:layout_below="@+id/search_container"
     50             android:layout_width="match_parent"
     51             android:layout_height="match_parent"
     52             android:layout_gravity="center_horizontal|top"
     53             android:clipToPadding="false"
     54             android:descendantFocusability="afterDescendants"
     55             android:focusable="true"
     56             android:paddingStart="@dimen/container_fastscroll_thumb_max_width"
     57             android:paddingEnd="@dimen/container_fastscroll_thumb_max_width" />
     58 
     59         <!-- Fast scroller popup -->
     60         <TextView
     61             style="@style/FastScrollerPopup"
     62             android:layout_below="@+id/search_container"
     63             android:id="@+id/fast_scroller_popup"
     64             android:layout_alignParentEnd="true"
     65             android:layout_marginEnd="@dimen/container_fastscroll_popup_margin" />
     66 
     67         <FrameLayout
     68             android:id="@+id/search_container"
     69             android:layout_width="match_parent"
     70             android:layout_height="@dimen/all_apps_search_bar_height"
     71             android:layout_gravity="center|top"
     72             android:gravity="center|bottom"
     73             android:orientation="horizontal"
     74             android:saveEnabled="false">
     75 
     76             <com.android.launcher3.ExtendedEditText
     77                 android:id="@+id/search_box_input"
     78                 android:layout_width="match_parent"
     79                 android:layout_height="@dimen/all_apps_search_bar_field_height"
     80                 android:background="@android:color/transparent"
     81                 android:layout_gravity="bottom"
     82                 android:focusableInTouchMode="true"
     83                 android:gravity="center"
     84                 android:imeOptions="actionSearch|flagNoExtractUi"
     85                 android:inputType="text|textNoSuggestions|textCapWords"
     86                 android:maxLines="1"
     87                 android:scrollHorizontally="true"
     88                 android:singleLine="true"
     89                 android:textColor="?android:attr/textColorSecondary"
     90                 android:hint="@string/all_apps_search_bar_hint"
     91                 android:textColorHint="@drawable/all_apps_search_hint"
     92                 android:textSize="16sp" />
     93         </FrameLayout>
     94 
     95     </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
     96     <View
     97         style="@style/AllAppsNavBarProtection"
     98         android:id="@+id/nav_bar_bg"
     99         android:layout_width="match_parent"
    100         android:layout_height="0dp"
    101         android:layout_gravity="bottom"
    102         android:focusable="false"
    103         android:visibility="invisible" />
    104 </com.android.launcher3.allapps.AllAppsContainerView>