OSDN Git Service

AI 145861: am: CL 145578 Tweak buttons in ChooseLockPatternTutorial to accomodate...
[android-x86/packages-apps-Settings.git] / res / layout / choose_lock_pattern_example.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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     android:orientation="vertical"
19     android:layout_height="fill_parent"
20     android:layout_width="fill_parent">
21     
22     <ScrollView 
23         android:layout_width="fill_parent"
24         android:layout_height="fill_parent"
25         android:layout_weight="1">
26         
27         <LinearLayout
28             android:orientation="vertical"
29             android:layout_height="fill_parent"
30             android:layout_width="fill_parent"
31             android:padding="5dip">
32             
33             <TextView
34                 android:layout_width="fill_parent"
35                 android:layout_height="wrap_content"
36                 android:text="@string/lock_example_title"
37                 android:gravity="center_horizontal"
38                 style="?android:attr/textAppearanceLarge"
39             />
40         
41             <ImageView android:id="@+id/lock_anim"
42                 android:layout_width="wrap_content"
43                 android:layout_height="wrap_content"
44                 android:layout_marginTop="11dip"
45                 android:layout_gravity="center_horizontal"
46                 android:focusable="false"
47                 android:clickable="false"
48             />
49             
50             <TextView
51                 android:layout_width="fill_parent"
52                 android:layout_height="wrap_content"
53                 android:layout_marginTop="5dip"
54                 android:text="@string/lock_example_message"
55                 android:layout_gravity="left"
56                 style="?android:attr/textAppearanceMedium"
57             />
58             
59         </LinearLayout>
60
61     </ScrollView>
62     
63     <LinearLayout style="@android:style/ButtonBar"
64         android:orientation="horizontal"
65         android:layout_width="fill_parent"
66         android:layout_height="wrap_content">
67         
68         <Button android:id="@+id/skip_button"
69             android:layout_height="wrap_content"
70             android:layout_width="140dip"
71             android:ellipsize="marquee"
72             android:singleLine="true"
73             android:text="@string/skip_button_label"
74         />
75       
76         <!-- Placeholder to get blank space between the two buttons -->
77         <View
78             android:visibility="invisible"
79             android:layout_height="0dip"
80             android:layout_width="1dip"
81             android:layout_weight="1" />
82             
83         <Button android:id="@+id/next_button"
84             android:layout_height="wrap_content"
85             android:layout_width="140dip"
86             android:ellipsize="marquee"
87             android:singleLine="true"
88             android:drawableRight="@drawable/ic_btn_next"
89             android:drawablePadding="3dip"
90             android:text="@string/next_button_label"
91         />
92         
93     </LinearLayout>
94     
95 </LinearLayout>