Stanley Wang | 1ed36d8 | 2018-08-27 17:05:49 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Stanley Wang | 1ed36d8 | 2018-08-27 17:05:49 +0800 | [diff] [blame] | 21 | android:gravity="center_vertical" |
| 22 | android:orientation="horizontal" > |
| 23 | |
| 24 | <LinearLayout |
| 25 | android:layout_width="0dp" |
| 26 | android:layout_height="wrap_content" |
| 27 | android:layout_weight="1" |
| 28 | android:gravity="center_vertical" |
| 29 | android:orientation="vertical" |
| 30 | android:paddingStart="@dimen/preference_no_icon_padding_start" |
| 31 | android:paddingEnd="@dimen/storage_summary_padding_end" |
| 32 | android:paddingTop="32dp" |
| 33 | android:paddingBottom="32dp" > |
| 34 | |
| 35 | <TextView |
| 36 | android:id="@android:id/title" |
| 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="wrap_content" |
| 39 | android:ellipsize="marquee" |
| 40 | android:fadingEdge="horizontal" |
| 41 | android:fontFamily="@*android:string/config_headlineFontFamily" |
| 42 | android:singleLine="true" |
| 43 | android:textAlignment="viewStart" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 44 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Display1" |
Stanley Wang | 1ed36d8 | 2018-08-27 17:05:49 +0800 | [diff] [blame] | 45 | android:textSize="36sp" /> |
| 46 | |
| 47 | <TextView |
| 48 | android:id="@android:id/summary" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:layout_marginStart="4dp" |
| 52 | android:layout_marginEnd="4dp" |
| 53 | android:maxLines="10" |
| 54 | android:paddingBottom="20dp" |
| 55 | android:textAlignment="viewStart" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 56 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" /> |
Stanley Wang | 1ed36d8 | 2018-08-27 17:05:49 +0800 | [diff] [blame] | 57 | |
| 58 | <Button |
| 59 | android:id="@+id/deletion_helper_button" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:layout_below="@android:id/summary" |
Tsung-Mao Fang | b7a3c9a | 2020-03-05 14:30:06 +0800 | [diff] [blame] | 63 | android:text="@string/storage_menu_manage" |
Stanley Wang | 1ed36d8 | 2018-08-27 17:05:49 +0800 | [diff] [blame] | 64 | style="@style/ActionPrimaryButton" /> |
| 65 | </LinearLayout> |
| 66 | |
| 67 | <com.android.settings.widget.DonutView |
| 68 | android:id="@+id/donut" |
| 69 | android:layout_width="112dp" |
| 70 | android:layout_height="112dp" |
| 71 | android:layout_marginEnd="32dp" |
| 72 | android:gravity="end|center_vertical" |
| 73 | android:minWidth="58dp" |
| 74 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 75 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" /> |
| 76 | |
| 77 | </LinearLayout> |