Home | History | Annotate | Download | only in layout-land
      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     <include layout="@layout/all_apps" />
     26 
     27     <!-- The workspace contains 3 screens of cells -->
     28     <com.android.launcher2.Workspace
     29         android:id="@+id/workspace"
     30         android:layout_width="match_parent"
     31         android:layout_height="match_parent"
     32         android:scrollbars="horizontal"
     33         android:fadeScrollbars="true"
     34         launcher:defaultScreen="2">
     35 
     36         <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
     37         <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
     38         <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
     39         <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
     40         <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
     41 
     42     </com.android.launcher2.Workspace>
     43 
     44     <com.android.launcher2.ClippedImageView
     45         android:id="@+id/previous_screen"
     46         android:layout_width="93dip"
     47         android:layout_height="@dimen/button_bar_height"
     48         android:layout_gravity="bottom|left"
     49         android:layout_marginLeft="6dip"
     50 
     51         android:scaleType="center"
     52         android:src="@drawable/home_arrows_left"
     53         
     54         android:onClick="previousScreen"
     55 
     56         launcher:ignoreZone="56dip"
     57 
     58         android:focusable="true"
     59         android:clickable="true" />
     60 
     61     <com.android.launcher2.ClippedImageView
     62         android:id="@+id/next_screen"
     63         android:layout_width="93dip"
     64         android:layout_height="@dimen/button_bar_height"
     65         android:layout_gravity="bottom|right"
     66         android:layout_marginRight="6dip"
     67 
     68         android:scaleType="center"
     69         android:src="@drawable/home_arrows_right"
     70         
     71         android:onClick="nextScreen"
     72         
     73         launcher:ignoreZone="-56dip"
     74         
     75         android:focusable="true"
     76         android:clickable="true" />
     77 
     78     <com.android.launcher2.DeleteZone
     79         android:id="@+id/delete_zone"
     80         android:layout_width="@dimen/delete_zone_size"
     81         android:layout_height="@dimen/delete_zone_size"
     82         android:paddingLeft="@dimen/delete_zone_padding"
     83         android:layout_marginBottom="@dimen/half_status_bar_height"
     84         android:layout_gravity="right|center_vertical"
     85 
     86         android:scaleType="center"
     87         android:src="@drawable/delete_zone_selector"
     88         android:visibility="invisible"
     89         launcher:direction="vertical"
     90         />
     91 
     92     <RelativeLayout
     93         android:id="@+id/all_apps_button_cluster"
     94         android:layout_height="fill_parent"
     95         android:layout_width="@dimen/button_bar_height_portrait"
     96         android:layout_gravity="right|center_vertical"
     97         android:layout_marginBottom="@dimen/half_status_bar_height"
     98         >
     99 
    100         <com.android.launcher2.HandleView
    101             style="@style/HotseatButton"
    102             android:id="@+id/all_apps_button"
    103             android:layout_centerVertical="true"
    104             android:layout_alignParentRight="true"
    105 
    106             android:src="@drawable/all_apps_button"
    107             launcher:direction="vertical"
    108             />
    109 
    110         <ImageView
    111             android:id="@+id/hotseat_left"
    112             style="@style/HotseatButton.Left"
    113             android:layout_below="@id/all_apps_button"
    114 
    115             android:src="@drawable/hotseat_phone"
    116 
    117             android:onClick="launchHotSeat"
    118             />
    119 
    120         <ImageView
    121             android:id="@+id/hotseat_right"
    122             style="@style/HotseatButton.Right"
    123             android:layout_above="@id/all_apps_button"
    124 
    125             android:src="@drawable/hotseat_browser"
    126 
    127             android:onClick="launchHotSeat"
    128             />
    129 
    130     </RelativeLayout>
    131 </com.android.launcher2.DragLayer>
    132