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     <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         launcher:defaultScreen="2">
     33 
     34         <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
     35         <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
     36         <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
     37         <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
     38         <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
     39                 
     40     </com.android.launcher2.Workspace>
     41 
     42     <ImageView
     43         android:id="@+id/previous_screen"
     44         android:layout_width="93dip"
     45         android:layout_height="@dimen/button_bar_height"
     46         android:layout_gravity="bottom|left"
     47         android:layout_marginLeft="6dip"
     48 
     49         android:scaleType="center"
     50         android:src="@drawable/home_arrows_left"
     51         
     52         android:onClick="previousScreen"
     53 
     54         android:focusable="true"
     55         android:clickable="true" />
     56 
     57     <ImageView
     58         android:id="@+id/next_screen"
     59         android:layout_width="93dip"
     60         android:layout_height="@dimen/button_bar_height"
     61         android:layout_gravity="bottom|right"
     62         android:layout_marginRight="6dip"
     63 
     64         android:scaleType="center"
     65         android:src="@drawable/home_arrows_right"
     66 
     67         android:onClick="nextScreen"
     68 
     69         android:focusable="true"
     70         android:clickable="true" />
     71 
     72     <com.android.launcher2.DeleteZone
     73         android:id="@+id/delete_zone"
     74         android:layout_width="@dimen/delete_zone_size"
     75         android:layout_height="@dimen/delete_zone_size"
     76         android:paddingTop="@dimen/delete_zone_padding"
     77         android:layout_gravity="bottom|center_horizontal"
     78 
     79         android:scaleType="center"
     80         android:src="@drawable/delete_zone_selector"
     81         android:visibility="invisible"
     82         launcher:direction="horizontal"
     83         />
     84 
     85     <RelativeLayout
     86         android:id="@+id/all_apps_button_cluster"
     87         android:layout_width="fill_parent"
     88         android:layout_height="@dimen/button_bar_height"
     89         android:layout_gravity="bottom|center_horizontal"
     90         android:paddingTop="2dip"
     91         >
     92 
     93         <com.android.launcher2.HandleView
     94             style="@style/HotseatButton"
     95             android:id="@+id/all_apps_button"
     96             android:layout_centerHorizontal="true"
     97             android:layout_alignParentBottom="true"
     98 
     99             android:src="@drawable/all_apps_button"
    100             launcher:direction="horizontal"
    101             />
    102 
    103         <ImageView
    104             android:id="@+id/hotseat_left"
    105             style="@style/HotseatButton.Left"
    106             android:layout_toLeftOf="@id/all_apps_button"
    107 
    108             android:src="@drawable/hotseat_phone"
    109 
    110             android:onClick="launchHotSeat"
    111             />
    112 
    113         <ImageView
    114             android:id="@+id/hotseat_right"
    115             style="@style/HotseatButton.Right"
    116             android:layout_toRightOf="@id/all_apps_button"
    117 
    118             android:src="@drawable/hotseat_browser"
    119 
    120             android:onClick="launchHotSeat"
    121             />
    122 
    123     </RelativeLayout>
    124 
    125 </com.android.launcher2.DragLayer>
    126