1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" > 20 21 <LinearLayout android:id="@+id/list_container" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical" 25 android:visibility="gone"> 26 <FrameLayout android:layout_width="match_parent" 27 android:layout_height="0px" 28 android:layout_weight="1"> 29 <ListView android:id="@android:id/list" 30 android:drawSelectorOnTop="false" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent" 33 android:clipToPadding="false" 34 android:scrollbarStyle="@integer/preference_scrollbar_style" /> 35 <TextView android:id="@android:id/empty" 36 android:layout_width="match_parent" 37 android:layout_height="match_parent" 38 android:gravity="center" 39 android:text="@string/no_applications" 40 android:textAppearance="?android:attr/textAppearanceLarge" /> 41 </FrameLayout> 42 <!-- Force layout direction to LTR for now as we want the text to be at the same position in 43 any Locale included the RTL ones. Will need to fix LinearColorBar RTL support later. 44 Please also note the left/right gravities that would also need to be changed for proper 45 RTL support --> 46 <view class="com.android.settings.applications.LinearColorBar" 47 android:id="@+id/storage_color_bar" 48 android:layout_marginStart="@dimen/settings_side_margin" 49 android:layout_marginEnd="@dimen/settings_side_margin" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_marginTop="-5dp" 53 android:orientation="horizontal" 54 android:clipChildren="false" 55 android:clipToPadding="false" 56 android:paddingTop="30dp" 57 android:paddingBottom="1dp" 58 android:layoutDirection="ltr"> 59 <TextView android:id="@+id/usedStorageText" 60 android:layout_width="0px" 61 android:layout_height="wrap_content" 62 android:layout_weight="1" 63 android:gravity="left" 64 android:textAppearance="?android:attr/textAppearanceSmallInverse" 65 android:textColor="#000" 66 android:singleLine="true" /> 67 <TextView android:id="@+id/storageChartLabel" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_weight="0" 71 android:layout_marginTop="-20dp" 72 android:textAppearance="?android:attr/textAppearanceSmallInverse" 73 android:textColor="#ccc" 74 android:shadowColor="#000" 75 android:shadowRadius="5" 76 android:textStyle="bold" 77 android:singleLine="true" 78 android:text="@string/internal_storage" /> 79 <TextView android:id="@+id/freeStorageText" 80 android:layout_gravity="center_vertical|end" 81 android:layout_width="0px" 82 android:layout_height="wrap_content" 83 android:layout_weight="1" 84 android:gravity="right" 85 android:textAppearance="?android:attr/textAppearanceSmallInverse" 86 android:textColor="#000" 87 android:singleLine="true" /> 88 </view> 89 </LinearLayout> 90 91 <LinearLayout android:id="@+id/loading_container" 92 android:orientation="vertical" 93 android:layout_width="match_parent" 94 android:layout_height="match_parent" 95 android:visibility="gone" 96 android:gravity="center"> 97 98 <ProgressBar style="?android:attr/progressBarStyleLarge" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" /> 101 <TextView android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:textAppearance="?android:attr/textAppearanceSmall" 104 android:text="@string/settings_safetylegal_activity_loading" 105 android:paddingTop="4dip" 106 android:singleLine="true" /> 107 108 </LinearLayout> 109 110 </FrameLayout> 111