• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/Settings/res/layout/sdcard_settings_screen.xml
4**
5** Copyright 2007, 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
21    android:orientation="vertical"
22    android:layout_width="fill_parent"
23    android:layout_height="fill_parent">
24
25    <LinearLayout android:id="@+id/list"
26        android:orientation="vertical"
27        android:padding="10dip"
28        android:layout_width="fill_parent"
29        android:layout_height="wrap_content">
30
31        <LinearLayout android:id="@+id/usb"
32            android:orientation="vertical"
33            android:paddingBottom="10dip"
34            android:layout_width="fill_parent"
35            android:layout_height="wrap_content">
36
37            <CheckBox android:id="@+id/mass_storage"
38                android:layout_width="wrap_content"
39                android:layout_height="wrap_content"
40                android:text="@string/sdcard_settings_screen_mass_storage_text">
41                <requestFocus/>
42            </CheckBox>
43
44            <TextView android:text="@string/sdcard_changes_instructions" style="@style/info_small" />
45        </LinearLayout>
46
47        <!-- divider line -->
48        <View android:background="#FF000000"
49            android:layout_width="fill_parent"
50            android:layout_height="1dip" />
51
52        <LinearLayout android:id="@+id/mounted"
53            android:orientation="vertical"
54            android:layout_width="fill_parent"
55            android:layout_height="wrap_content"
56            android:paddingTop="10dip">
57
58            <TextView android:id="@+id/read_only"
59                android:text="@string/sdcard_settings_read_only_status"
60                style="@style/info_label" />
61
62            <Button android:id="@+id/sdcard_unmount"
63                android:text="@string/sdcard_unmount"
64                android:textSize="14sp"
65                android:layout_marginTop="8dip"
66                android:layout_width="wrap_content" android:layout_height="wrap_content" />
67
68            <Button android:id="@+id/sdcard_format"
69                android:text="@string/sdcard_format"
70                android:textSize="14sp"
71                android:layout_marginTop="8dip"
72                android:layout_width="wrap_content" android:layout_height="wrap_content" />
73
74            <TableLayout
75                android:layout_width="fill_parent"
76                android:layout_height="wrap_content"
77                android:paddingTop="10dip">
78                <TableRow>
79                    <TextView android:text="@string/sdcard_settings_total_bytes_label" style="@style/info_label" />
80                    <TextView android:id="@+id/total" style="@style/info_value" />
81                </TableRow>
82                <TableRow>
83                    <TextView android:text="@string/sdcard_settings_used_bytes_label" style="@style/info_label" />
84                    <TextView android:id="@+id/used" style="@style/info_value" />
85                </TableRow>
86                <TableRow>
87                    <TextView android:text="@string/sdcard_settings_available_bytes_label" style="@style/info_label" />
88                    <TextView android:id="@+id/available" style="@style/info_value" />
89                </TableRow>
90            </TableLayout>
91
92        </LinearLayout>
93
94        <LinearLayout style="@style/entry_layout"
95            android:id="@+id/scanning"
96            android:paddingTop="10dip">
97            <TextView android:text="@string/sdcard_settings_scanning_status" style="@style/info_label" />
98        </LinearLayout>
99
100        <LinearLayout style="@style/entry_layout"
101            android:id="@+id/removed"
102            android:paddingTop="10dip">
103            <TextView android:text="@string/sdcard_settings_not_present_status" style="@style/info_label" />
104        </LinearLayout>
105
106        <LinearLayout android:id="@+id/shared"
107            android:orientation="vertical"
108            android:layout_width="fill_parent"
109            android:layout_height="wrap_content"
110            android:paddingTop="10dip">
111
112            <LinearLayout style="@style/entry_layout" >
113                <TextView android:text="@string/sdcard_settings_mass_storage_status" style="@style/info_label" />
114            </LinearLayout>
115
116        </LinearLayout>
117
118        <LinearLayout style="@style/entry_layout"
119            android:id="@+id/unmounted"
120            android:paddingTop="10dip">
121            <TextView android:text="@string/sdcard_settings_unmounted_status" style="@style/info_label" />
122        </LinearLayout>
123
124        <LinearLayout style="@style/entry_layout"
125            android:id="@+id/bad_removal"
126            android:paddingTop="10dip">
127            <TextView android:text="@string/sdcard_settings_bad_removal_status" style="@style/info_label" />
128        </LinearLayout>
129
130    </LinearLayout>
131</ScrollView>
132
133