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="vertical"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent">
     23 
     24     <!-- Top: pattern and information -->
     25     <LinearLayout
     26         android:layout_width="match_parent"
     27         android:layout_height="0dip"
     28         android:layout_weight="1"
     29         android:orientation="horizontal">
     30 
     31         <!-- left side: lock pattern. Given the square aspect, this will be the smaller of the
     32              two dimensions (height) -->
     33         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
     34              android:layout_width="match_parent"
     35              android:layout_height="match_parent"/>
     36 
     37         <!-- right side: instructions and buttons -->
     38         <!-- header message -->
     39         <ScrollView
     40             android:layout_width="0dip"
     41             android:layout_height="wrap_content"
     42             android:layout_weight="1"
     43             android:layout_marginLeft="25dip">
     44 
     45             <LinearLayout
     46                 android:layout_width="match_parent"
     47                 android:layout_height="wrap_content"
     48                 android:orientation="vertical"
     49                 android:padding="5dip">
     50 
     51                 <TextView
     52                     android:layout_width="match_parent"
     53                     android:layout_height="wrap_content"
     54                     android:gravity="center_horizontal"
     55                     android:text="@string/lock_title"
     56                     android:paddingBottom="10dip"
     57                     style="?android:attr/textAppearanceLarge"
     58                 />
     59 
     60                 <TextView
     61                     android:layout_width="match_parent"
     62                     android:layout_height="wrap_content"
     63                     android:textAppearance="?android:attr/textAppearanceMedium"
     64                     android:textSize="18sp"
     65                     android:text="@string/lock_intro_message"
     66                 />
     67 
     68             </LinearLayout>
     69 
     70         </ScrollView>
     71 
     72     </LinearLayout>
     73 
     74     <!-- Bottom: cancel/next buttons -->
     75     <LinearLayout
     76         style="@style/SecurityPreferenceButtonContainer"
     77         android:orientation="horizontal">
     78 
     79         <!-- left / top button: skip, or re-try -->
     80         <Button android:id="@+id/skip_button"
     81             style="@style/SecurityPreferenceButton"
     82             android:text="@string/lockpattern_tutorial_cancel_label"/>
     83 
     84         <!-- right / bottom button: confirm or ok -->
     85         <Button android:id="@+id/next_button"
     86             style="@style/SecurityPreferenceButton"
     87             android:text="@string/lockpattern_tutorial_continue_label"/>
     88 
     89     </LinearLayout>
     90 
     91 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
     92 
     93