Home | History | Annotate | Download | only in layout-port
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 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 
     17 <com.android.launcher2.DragLayer
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
     20 
     21     android:id="@+id/drag_layer"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent">
     24 
     25     <!-- Keep these behind the workspace so that they are not visible when
     26          we go into AllApps -->
     27     <include
     28         android:id="@+id/dock_divider"
     29         layout="@layout/workspace_divider"
     30         android:layout_width="match_parent"
     31         android:layout_height="wrap_content"
     32         android:layout_marginBottom="@dimen/button_bar_height"
     33         android:layout_gravity="bottom" />
     34     <include
     35         android:id="@+id/paged_view_indicator"
     36         layout="@layout/scroll_indicator"
     37         android:layout_width="wrap_content"
     38         android:layout_height="wrap_content"
     39         android:layout_gravity="bottom"
     40         android:layout_marginBottom="@dimen/button_bar_height" />
     41 
     42     <!-- The workspace contains 5 screens of cells -->
     43     <com.android.launcher2.Workspace
     44         android:id="@+id/workspace"
     45         android:layout_width="match_parent"
     46         android:layout_height="match_parent"
     47         android:paddingTop="@dimen/qsb_bar_height_inset"
     48         android:paddingBottom="@dimen/button_bar_height"
     49         launcher:defaultScreen="2"
     50         launcher:cellCountX="4"
     51         launcher:cellCountY="4"
     52         launcher:pageSpacing="@dimen/workspace_page_spacing"
     53         launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left"
     54         launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right">
     55 
     56         <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
     57         <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
     58         <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
     59         <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
     60         <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
     61     </com.android.launcher2.Workspace>
     62 
     63     <include layout="@layout/hotseat"
     64         android:id="@+id/hotseat"
     65         android:layout_width="match_parent"
     66         android:layout_height="@dimen/button_bar_height_plus_padding"
     67         android:layout_gravity="bottom" />
     68 
     69     <include
     70         android:id="@+id/qsb_bar"
     71         layout="@layout/qsb_bar" />
     72 
     73     <include layout="@layout/apps_customize_pane"
     74         android:id="@+id/apps_customize_pane"
     75         android:layout_width="match_parent"
     76         android:layout_height="match_parent"
     77         android:visibility="invisible" />
     78 
     79     <include layout="@layout/workspace_cling"
     80         android:id="@+id/workspace_cling"
     81         android:layout_width="match_parent"
     82         android:layout_height="match_parent"
     83         android:visibility="gone" />
     84 
     85     <include layout="@layout/folder_cling"
     86         android:id="@+id/folder_cling"
     87         android:layout_width="match_parent"
     88         android:layout_height="match_parent"
     89         android:visibility="gone" />
     90 </com.android.launcher2.DragLayer>
     91