Home | History | Annotate | Download | only in layout
      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="match_parent"
     20     android:layout_width="match_parent">
     21     
     22     <ScrollView 
     23         android:layout_width="match_parent"
     24         android:layout_height="0dip"
     25         android:layout_weight="1">
     26         
     27         <LinearLayout
     28             android:layout_width="match_parent"
     29             android:layout_height="wrap_content"
     30             android:orientation="vertical"
     31             android:padding="5dip">
     32             
     33             <TextView
     34                 android:layout_width="match_parent"
     35                 android:layout_height="wrap_content"
     36                 android:gravity="center_horizontal"
     37                 android:text="@string/lock_title"
     38                 android:paddingBottom="10dip"
     39                 android:layout_marginTop="3dip"
     40                 style="?android:attr/textAppearanceLarge"
     41             />
     42         
     43             <TextView 
     44                 android:layout_width="match_parent"
     45                 android:layout_height="wrap_content"
     46                 android:textAppearance="?android:attr/textAppearanceMedium"
     47                 android:layout_marginTop="10dip"
     48                 android:text="@string/lock_intro_message"
     49             />
     50             
     51         </LinearLayout>
     52        
     53     </ScrollView>
     54     
     55     <LinearLayout style="@android:style/ButtonBar"
     56         android:orientation="horizontal"
     57         android:layout_width="match_parent"
     58         android:layout_height="wrap_content">
     59 
     60         <Button android:id="@+id/skip_button"
     61             android:layout_height="wrap_content"
     62             android:layout_width="140dip"
     63             android:ellipsize="marquee"
     64             android:singleLine="true"
     65             android:text="@string/skip_button_label"
     66         />
     67         
     68         <!-- Placeholder to get blank space between the two buttons -->
     69         <View
     70             android:visibility="invisible"
     71             android:layout_height="0dip"
     72             android:layout_width="1dip"
     73             android:layout_weight="1" />
     74         
     75         <Button android:id="@+id/next_button"
     76             android:layout_height="wrap_content"
     77             android:layout_width="140dip"
     78             android:drawableRight="@drawable/ic_btn_next"
     79             android:drawablePadding="3dip"
     80             android:ellipsize="marquee"
     81             android:singleLine="true"
     82             android:text="@string/next_button_label"
     83         />
     84         
     85     </LinearLayout>
     86     
     87 </LinearLayout >
     88