Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2014 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License")
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9         http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 
     18 <!-- Used in phone portrait and tablet, as referenced in alias.xml. -->
     19 <com.android.setupwizardlib.GlifLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     xmlns:settings="http://schemas.android.com/apk/res-auto"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent"
     24     android:icon="@drawable/ic_lock"
     25     android:layout="@layout/suw_glif_blank_template"
     26     settings:suwFooter="@layout/choose_lock_pattern_common_footer"
     27     settings:suwHeaderText="@string/lockpassword_choose_your_pattern_header">
     28 
     29     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     30         android:id="@+id/topLayout"
     31         android:layout_width="match_parent"
     32         android:layout_height="match_parent"
     33         android:clipChildren="false"
     34         android:clipToPadding="false"
     35         android:orientation="vertical">
     36 
     37         <LinearLayout
     38             style="@style/SuwGlifHeaderContainer"
     39             android:layout_width="match_parent"
     40             android:layout_height="wrap_content"
     41             android:orientation="vertical">
     42 
     43             <ImageView
     44                 android:id="@+id/suw_layout_icon"
     45                 style="@style/LockPatternIconStyle"
     46                 android:layout_width="wrap_content"
     47                 android:layout_height="wrap_content"
     48                 android:src="@drawable/ic_lock" />
     49 
     50             <TextView
     51                 android:id="@+id/suw_layout_title"
     52                 style="@style/SuwGlifHeaderTitle"
     53                 android:layout_width="match_parent"
     54                 android:layout_height="wrap_content" />
     55 
     56         </LinearLayout>
     57 
     58         <!-- takes up all space above button bar at bottom -->
     59         <LinearLayout
     60             style="@style/SuwContentFrame"
     61             android:layout_width="match_parent"
     62             android:layout_height="0dip"
     63             android:layout_weight="1"
     64             android:gravity="center"
     65             android:clipChildren="false"
     66             android:clipToPadding="false"
     67             android:orientation="vertical"
     68             android:paddingLeft="0dp"
     69             android:paddingRight="0dp">
     70 
     71             <TextView android:id="@+id/headerText"
     72                 android:layout_width="match_parent"
     73                 android:layout_height="wrap_content"
     74                 android:minLines="2"
     75                 android:gravity="center"
     76                 android:paddingHorizontal="?attr/suwMarginSides"
     77                 android:textSize="18sp" />
     78 
     79             <com.android.setupwizardlib.view.FillContentLayout
     80                 style="@style/LockPatternContainerStyle"
     81                 android:layout_width="wrap_content"
     82                 android:layout_height="0dp"
     83                 android:layout_weight="1">
     84 
     85                 <com.android.internal.widget.LockPatternView
     86                     android:id="@+id/lockPattern"
     87                     android:layout_width="match_parent"
     88                     android:layout_height="match_parent"
     89                     android:layout_gravity="center" />
     90 
     91             </com.android.setupwizardlib.view.FillContentLayout>
     92 
     93         </LinearLayout>
     94 
     95         <TextView android:id="@+id/footerText"
     96             android:layout_width="wrap_content"
     97             android:layout_height="wrap_content"
     98             android:layout_gravity="center_horizontal"
     99             android:minHeight="50dip"
    100             android:textSize="14sp"
    101             android:visibility="gone"/>
    102 
    103     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
    104 
    105 </com.android.setupwizardlib.GlifLayout>
    106