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     android:background="@color/black">
     24 
     25     <!-- left side: instructions and messages -->
     26     <LinearLayout
     27             android:orientation="vertical"
     28             android:layout_width="0dip"
     29             android:layout_height="match_parent"
     30             android:layout_weight="1.0"
     31             >
     32 
     33         <!-- header message -->
     34         <TextView android:id="@+id/headerText"
     35                   android:layout_width="match_parent"
     36                   android:layout_height="wrap_content"
     37                   android:gravity="center"
     38                   android:textSize="18sp"/>
     39 
     40         <!-- fill space between header and button below -->
     41         <View
     42             android:layout_weight="1.0"
     43             android:layout_width="match_parent"
     44             android:layout_height="0dip"
     45             />
     46 
     47         <!-- footer message -->
     48         <TextView android:id="@+id/footerText"
     49                   android:layout_width="match_parent"
     50                   android:layout_height="wrap_content"
     51                   android:gravity="center"
     52                   android:textSize="14sp"/>
     53     </LinearLayout>
     54 
     55     <View
     56          android:background="@*android:drawable/code_lock_left"
     57          android:layout_width="2dip"
     58          android:layout_height="match_parent" />
     59     <!-- right side: lock pattern -->
     60     <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
     61          android:layout_width="wrap_content"
     62          android:layout_height="wrap_content" />
     63 
     64 
     65 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
     66 
     67