Home | History | Annotate | Download | only in layout-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: instructions and messages -->
     25     <LinearLayout
     26             android:orientation="vertical"
     27             android:layout_width="0dip"
     28             android:layout_height="match_parent"
     29             android:layout_weight="1.0"
     30             >
     31 
     32         <!-- header message -->
     33         <TextView android:id="@+id/headerText"
     34                   android:layout_width="match_parent"
     35                   android:layout_height="wrap_content"
     36                   android:gravity="center"
     37                   android:textSize="18sp"/>
     38 
     39         <!-- footer can show a message, or confirm / restart buttons -->
     40         <RelativeLayout
     41                 android:layout_width="match_parent"
     42                 android:layout_height="0dip"
     43                 android:layout_weight="1.0">
     44 
     45             <!-- confirm / restart buttons -->
     46             <LinearLayout android:id="@+id/buttonContainer"
     47                 style="@style/SecurityPreferenceButtonContainer"
     48                 android:layout_centerHorizontal="true"
     49                 android:layout_alignParentBottom="true"
     50                 android:orientation="horizontal">
     51 
     52                 <!-- left / top button: skip, or re-try -->
     53                 <Button android:id="@+id/footerLeftButton"
     54                     style="@style/SecurityPreferenceButton"
     55                     android:layout_width="match_parent"
     56                     android:layout_height="wrap_content"
     57                     android:text="@string/lockpattern_restart_button_text"/>
     58 
     59                 <!-- right / bottom button: confirm or ok -->
     60                 <Button android:id="@+id/footerRightButton"
     61                     style="@style/SecurityPreferenceButton"
     62                     android:layout_width="match_parent"
     63                     android:layout_height="wrap_content"
     64                     android:text="@string/lockpattern_confirm_button_text"/>
     65 
     66             </LinearLayout>
     67 
     68             <!-- message above buttons -->
     69             <TextView android:id="@+id/footerText"
     70                 android:layout_width="wrap_content"
     71                 android:layout_height="wrap_content"
     72                 android:layout_above="@+id/buttonContainer"
     73                 android:layout_centerHorizontal="true"
     74                 android:layout_marginBottom="4dip"
     75                 android:textSize="14sp"/>
     76 
     77         </RelativeLayout>
     78     </LinearLayout>
     79 
     80     <View
     81          android:background="@*android:drawable/code_lock_left"
     82          android:layout_width="2dip"
     83          android:layout_height="match_parent" />
     84 
     85     <!-- right side: lock pattern -->
     86     <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
     87          android:layout_width="match_parent"
     88          android:layout_height="match_parent" />
     89 
     90 
     91 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
     92 
     93