OSDN Git Service

Fix 4462497: Fixes crash in settings due to using wrong layout on 7" devices.
[android-x86/packages-apps-Settings.git] / res / layout-sw600dp-land / confirm_lock_pattern.xml
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     <RelativeLayout
25         android:layout_width="0dip"
26         android:layout_height="match_parent"
27         android:layout_weight="1">
28
29         <!-- left side: lock pattern -->
30         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
31              android:layout_width="354dip"
32              android:layout_height="354dip"
33              android:layout_gravity="center_horizontal"
34              android:layout_marginTop="72dip"
35              android:layout_marginLeft="111dip"
36              aspect="square"/>
37
38         <!-- right side: instructions and buttons -->
39         <!-- header message -->
40         <TextView android:id="@+id/headerText"
41             android:layout_width="542dip"
42             android:layout_height="wrap_content"
43             android:layout_marginTop="88dip"
44             android:layout_alignParentTop="true"
45             android:layout_toRightOf="@id/lockPattern"
46             android:layout_marginLeft="100dip"
47             android:textSize="22sp"/>
48
49         <!-- footer message -->
50         <TextView android:id="@+id/footerText"
51             android:layout_width="542dip"
52             android:layout_height="wrap_content"
53             android:layout_below="@id/headerText"
54             android:layout_marginTop="16dip"
55             android:layout_toRightOf="@id/lockPattern"
56             android:layout_marginLeft="100dip"
57             android:textSize="22sp"/>
58
59     </RelativeLayout>
60
61 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
62