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 <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/topLayout"
     19     android:orientation="horizontal"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent">
     22 
     23     <!-- left side: lock pattern widget -->
     24     <RelativeLayout
     25         android:layout_width="0dip"
     26         android:layout_height="match_parent"
     27         android:layout_weight="1"
     28         android:gravity="center_horizontal|center_vertical"
     29         android:orientation="horizontal">
     30 
     31         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
     32              android:layout_width="354dip"
     33              android:layout_height="354dip"
     34              aspect="square"/>
     35 
     36      </RelativeLayout>
     37 
     38     <!-- right side: instructions and buttons -->
     39     <RelativeLayout
     40         android:layout_width="0dip"
     41         android:layout_height="match_parent"
     42         android:layout_weight="1"
     43         android:gravity="center_horizontal">
     44 
     45         <!-- confirm / restart buttons -->
     46         <LinearLayout android:id="@+id/buttonContainer"
     47             style="@style/SecurityPreferenceButtonContainer"
     48             android:layout_alignParentRight="true"
     49             android:layout_alignParentBottom="true"
     50             android:orientation="horizontal"
     51             android:visibility="invisible">
     52 
     53             <!-- left / top button: skip, or re-try -->
     54             <Button android:id="@+id/footerLeftButton"
     55                 style="@style/SecurityPreferenceButton"
     56                 android:text="@string/lockpattern_restart_button_text"/>
     57 
     58             <!-- right / bottom button: confirm or ok -->
     59             <Button android:id="@+id/footerRightButton"
     60                 style="@style/SecurityPreferenceButton"
     61                 android:text="@string/lockpattern_confirm_button_text"/>
     62 
     63         </LinearLayout>
     64 
     65         <!-- footer message -->
     66         <TextView android:id="@+id/footerText"
     67             android:layout_width="wrap_content"
     68             android:layout_height="wrap_content"
     69             android:layout_above="@id/buttonContainer"
     70             android:layout_marginTop="16dip"
     71             android:textAppearance="?android:attr/textAppearanceLarge"/>
     72 
     73         <!-- header message -->
     74         <ScrollView
     75             android:layout_width="match_parent"
     76             android:layout_height="wrap_content"
     77             android:layout_alignParentTop="true"
     78             android:layout_marginTop="20dip"
     79             android:layout_marginLeft="20dip"
     80             android:layout_above="@id/footerText"
     81             android:gravity="center_vertical|center_horizontal">
     82 
     83             <TextView android:id="@+id/headerText"
     84                 android:layout_width="match_parent"
     85                 android:layout_height="wrap_content"
     86                 android:textSize="22sp"/>
     87 
     88         </ScrollView>
     89 
     90     </RelativeLayout>
     91 
     92 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
     93 
     94