Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:orientation="vertical"
     21     >
     22 
     23     <ScrollView
     24             android:layout_width="match_parent"
     25             android:layout_height="0dip"
     26             android:layout_marginStart="12dp"
     27             android:layout_marginEnd="12dp"
     28             android:layout_marginTop="12dp"
     29             android:layout_weight="1">
     30         <LinearLayout android:layout_width="match_parent"
     31                 android:layout_height="wrap_content"
     32                 android:orientation="vertical">
     33             <TextView
     34                 android:layout_width="match_parent"
     35                 android:layout_height="wrap_content"
     36                 android:includeFontPadding="false"
     37                 android:textSize="18sp"
     38                 android:text="@string/master_clear_desc" />
     39             <TextView android:id="@+id/also_erases_external"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="wrap_content"
     42                 android:includeFontPadding="false"
     43                 android:visibility="gone"
     44                 android:textSize="18sp"
     45                 android:text="@string/master_clear_desc_also_erases_external" />
     46             <TextView android:id="@+id/accounts_label"
     47                 android:layout_width="match_parent"
     48                 android:layout_height="wrap_content"
     49                 android:visibility="gone"
     50                 android:textSize="18sp"
     51                 android:text="@string/master_clear_accounts" />
     52             <LinearLayout android:id="@+id/accounts"
     53                     android:layout_width="wrap_content"
     54                     android:layout_height="wrap_content"
     55                     android:orientation="vertical"
     56                     android:visibility="gone">
     57                 <!-- Do not add any children here as they will be removed in the MasterClear.java
     58                     code. A list of accounts will be inserted programmatically. -->
     59             </LinearLayout>
     60             <TextView android:id="@+id/other_users_present"
     61                 android:layout_width="match_parent"
     62                 android:layout_height="wrap_content"
     63                 android:visibility="gone"
     64                 android:textSize="18sp"
     65                 android:text="@string/master_clear_other_users_present" />
     66             <TextView android:id="@+id/erase_external_option_text"
     67                 android:layout_width="match_parent"
     68                 android:layout_height="wrap_content"
     69                 android:textSize="18sp"
     70                 android:text="@string/master_clear_desc_erase_external_storage" />
     71             <LinearLayout android:id="@+id/erase_external_container"
     72                     android:layout_width="match_parent"
     73                     android:layout_height="wrap_content"
     74                     android:orientation="horizontal"
     75                     android:focusable="true"
     76                     android:clickable="true">
     77                 <CheckBox android:id="@+id/erase_external"
     78                         android:layout_width="wrap_content"
     79                         android:layout_height="wrap_content"
     80                         android:layout_gravity="center_vertical"
     81                         android:paddingEnd="8dp"
     82                         android:focusable="false"
     83                         android:clickable="false"
     84                         android:duplicateParentState="true" />
     85                 <LinearLayout android:layout_width="match_parent"
     86                         android:layout_height="wrap_content"
     87                         android:layout_gravity="center_vertical"
     88                         android:orientation="vertical">
     89                     <TextView
     90                         android:layout_width="wrap_content"
     91                         android:layout_height="wrap_content"
     92                         android:paddingTop="12dp"
     93                         android:textSize="18sp"
     94                         android:text="@string/erase_external_storage" />
     95                     <TextView
     96                         android:layout_width="wrap_content"
     97                         android:layout_height="wrap_content"
     98                         android:paddingTop="4sp"
     99                         android:textSize="14sp"
    100                         android:text="@string/erase_external_storage_description" />
    101                 </LinearLayout>
    102             </LinearLayout>
    103         </LinearLayout>
    104     </ScrollView>
    105     <Button
    106             android:id="@+id/initiate_master_clear"
    107             android:layout_gravity="center_horizontal"
    108             android:layout_marginTop="20dip"
    109             android:layout_marginBottom="12dip"
    110             android:layout_width="wrap_content"
    111             android:layout_height="wrap_content"
    112             android:text="@string/master_clear_button_text"
    113             android:gravity="center" />
    114 
    115 </LinearLayout>
    116