Home | History | Annotate | Download | only in layout-sw600dp-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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.internal.widget.LinearLayoutWithDefaultTouchRecepient
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/topLayout"
     20     android:orientation="horizontal"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent">
     23 
     24     <!-- left side: lock pattern example widget -->
     25     <RelativeLayout
     26         android:layout_width="0dip"
     27         android:layout_height="match_parent"
     28         android:layout_weight="1"
     29         android:gravity="center_horizontal|center_vertical"
     30         android:orientation="horizontal">
     31 
     32         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
     33              android:layout_width="354dip"
     34              android:layout_height="354dip"
     35              aspect="square"/>
     36 
     37      </RelativeLayout>
     38 
     39     <!-- right side: instructions and buttons -->
     40     <RelativeLayout
     41         android:layout_width="0dip"
     42         android:layout_height="match_parent"
     43         android:layout_weight="1"
     44         android:gravity="center_horizontal">
     45 
     46         <!-- navigation buttons -->
     47         <LinearLayout android:id="@+id/buttonContainer"
     48             style="@style/SecurityPreferenceButtonContainer"
     49             android:layout_alignParentRight="true"
     50             android:layout_alignParentBottom="true"
     51             android:orientation="horizontal">
     52 
     53             <!-- left / top button: skip, or re-try -->
     54             <Button android:id="@+id/skip_button"
     55                 style="@style/SecurityPreferenceButton"
     56                 android:text="@string/lockpattern_tutorial_cancel_label"/>
     57 
     58             <!-- right / bottom button: confirm or ok -->
     59             <Button android:id="@+id/next_button"
     60                 style="@style/SecurityPreferenceButton"
     61                 android:text="@string/lockpattern_tutorial_continue_label"/>
     62 
     63         </LinearLayout>
     64 
     65         <!-- header message -->
     66         <ScrollView
     67             android:layout_width="match_parent"
     68             android:layout_height="wrap_content"
     69             android:layout_alignParentTop="true"
     70             android:layout_marginTop="20dip"
     71             android:layout_marginLeft="20dip"
     72             android:gravity="center_vertical|center_horizontal"
     73             android:layout_above="@id/buttonContainer">
     74 
     75             <TextView android:id="@+id/headerText"
     76                 android:layout_width="match_parent"
     77                 android:layout_height="wrap_content"
     78                 android:text="@string/lock_intro_message"
     79                 android:textAppearance="?android:attr/textAppearanceLarge"/>
     80 
     81         </ScrollView>
     82 
     83     </RelativeLayout>>
     84 
     85 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
     86 
     87