Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 
      3 <!--
      4 /*
      5  * Copyright (C) 2011, The Android Open Source Project
      6  *
      7  * Licensed under the Apache License, Version 2.0 (the "License");
      8  * you may not use this file except in compliance with the License.
      9  * You may obtain a copy of the License at
     10  *
     11  *     http://www.apache.org/licenses/LICENSE-2.0
     12  *
     13  * Unless required by applicable law or agreed to in writing, software
     14  * distributed under the License is distributed on an "AS IS" BASIS,
     15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16  * See the License for the specific language governing permissions and
     17  * limitations under the License.
     18  */
     19 -->
     20 
     21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     22               android:layout_width="match_parent" 
     23               android:layout_height="match_parent"
     24               android:orientation="vertical">
     25 
     26     <ScrollView 
     27             android:padding="16dp"
     28             android:layout_height="0dp"
     29             android:layout_weight="1"
     30             android:layout_width="match_parent">
     31         <LinearLayout
     32                 android:orientation="vertical"
     33                 android:layout_height="wrap_content"
     34                 android:layout_width="match_parent">
     35 
     36         <TextView android:id="@+id/confirm_text"
     37                   android:layout_width="match_parent" 
     38                   android:layout_height="wrap_content"
     39                   android:layout_marginBottom="30dp"
     40                   android:text="@string/restore_confirm_text" />
     41 
     42         <TextView android:id="@+id/password_desc"
     43                   android:layout_below="@id/confirm_text"
     44                   android:layout_width="wrap_content"
     45                   android:layout_height="wrap_content"
     46                   android:layout_marginBottom="10dp"
     47                   android:text="@string/current_password_text" />
     48 
     49         <EditText android:id="@+id/password"
     50                   android:layout_below="@id/password_desc"
     51                   android:layout_width="match_parent"
     52                   android:layout_height="wrap_content"
     53                   android:layout_marginBottom="30dp"
     54                   android:password="true" />
     55 
     56         <TextView android:id="@+id/enc_password_desc"
     57                   android:layout_below="@id/password"
     58                   android:layout_width="wrap_content"
     59                   android:layout_height="wrap_content"
     60                   android:layout_marginBottom="10dp"
     61                   android:text="@string/restore_enc_password_text" />
     62 
     63         <EditText android:id="@+id/enc_password"
     64                   android:layout_below="@id/enc_password_desc"
     65                   android:layout_width="match_parent"
     66                   android:layout_height="wrap_content"
     67                   android:layout_marginBottom="30dp"
     68                   android:password="true" />
     69 
     70         <TextView android:id="@+id/package_name"
     71                   android:layout_width="match_parent"
     72                   android:layout_height="20dp"
     73                   android:layout_marginLeft="30dp"
     74                   android:layout_below="@id/enc_password"
     75                   android:layout_marginBottom="10dp" />
     76         </LinearLayout>
     77     </ScrollView>
     78 
     79     <!-- button bar divider -->
     80     <View android:background="?android:attr/dividerHorizontal"
     81           android:layout_height="1dp"
     82           android:layout_width="match_parent" />
     83 
     84     <!-- button bar -->
     85     <LinearLayout android:orientation="horizontal"
     86                   style="?android:attr/buttonBarStyle"                 
     87                   android:layout_height="wrap_content"
     88                   android:layout_width="match_parent"
     89                   android:layout_gravity="bottom">
     90 
     91         <Button android:id="@+id/button_deny"
     92                 style="?android:attr/buttonBarButtonStyle"
     93                 android:text="@string/deny_restore_button_label"
     94                 android:layout_height="wrap_content"
     95                 android:layout_width="0dp"
     96                 android:layout_weight="1" />
     97 
     98         <Button android:id="@+id/button_allow"
     99                 style="?android:attr/buttonBarButtonStyle"
    100                 android:filterTouchesWhenObscured="true"
    101                 android:text="@string/allow_restore_button_label"
    102                 android:layout_height="wrap_content"
    103                 android:layout_width="0dp"
    104                 android:layout_weight="1" />
    105 
    106     </LinearLayout>
    107 
    108 </LinearLayout>
    109