Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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" |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:orientation="vertical" |
| 21 | android:minHeight="?android:attr/listPreferredItemHeightSmall" |
| 22 | android:gravity="center_vertical" |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 23 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 24 | android:paddingTop="14dp" |
| 25 | android:paddingBottom="14dp" |
Fan Zhang | c2b0c7b | 2017-05-31 15:40:02 -0700 | [diff] [blame] | 26 | android:background="?android:attr/selectableItemBackground" |
| 27 | android:clipToPadding="false"> |
Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 28 | |
| 29 | <LinearLayout |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 32 | android:gravity="center_vertical" |
Fan Zhang | c2b0c7b | 2017-05-31 15:40:02 -0700 | [diff] [blame] | 33 | android:orientation="horizontal" |
| 34 | android:clipToPadding="false" |
| 35 | android:paddingStart="?android:attr/listPreferredItemPaddingStart"> |
Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 36 | |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 37 | <LinearLayout |
Fan Zhang | c2b0c7b | 2017-05-31 15:40:02 -0700 | [diff] [blame] | 38 | android:id="@+id/icon_frame" |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:gravity="start|center_vertical" |
Doris Ling | f28283a | 2017-10-30 17:57:46 -0700 | [diff] [blame] | 42 | android:minWidth="56dp" |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 43 | android:orientation="horizontal" |
Daniel Nishi | 49118e7 | 2017-02-27 11:28:04 -0800 | [diff] [blame] | 44 | android:paddingTop="4dp" |
| 45 | android:paddingBottom="4dp"> |
| 46 | <com.android.internal.widget.PreferenceImageView |
| 47 | android:id="@android:id/icon" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:maxWidth="24dp" |
| 51 | android:maxHeight="24dp"/> |
| 52 | </LinearLayout> |
| 53 | |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 54 | <RelativeLayout |
| 55 | android:layout_width="match_parent" |
Daniel Nishi | cf0e659 | 2017-03-15 14:00:13 -0700 | [diff] [blame] | 56 | android:layout_height="wrap_content" |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 57 | android:gravity="center_vertical" > |
Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 58 | |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 59 | <TextView |
| 60 | android:id="@android:id/title" |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:singleLine="true" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 64 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 65 | android:textAlignment="viewStart" |
| 66 | android:ellipsize="marquee" |
| 67 | android:fadingEdge="horizontal" /> |
Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 68 | |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 69 | <TextView |
| 70 | android:id="@android:id/summary" |
| 71 | android:layout_width="wrap_content" |
| 72 | android:layout_height="wrap_content" |
| 73 | android:textAlignment="viewStart" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 74 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" |
Daniel Nishi | e5a006f | 2018-05-16 15:34:34 -0700 | [diff] [blame] | 75 | android:textColor="?android:attr/textColorSecondary" |
Daniel Nishi | 05d4949 | 2017-06-29 11:38:27 -0700 | [diff] [blame] | 76 | android:maxLines="10" |
| 77 | android:layout_alignParentEnd="true"/> |
| 78 | |
| 79 | <ProgressBar |
| 80 | android:id="@android:id/progress" |
| 81 | android:layout_width="match_parent" |
| 82 | android:layout_height="8dp" |
| 83 | android:layout_marginTop="12dp" |
| 84 | android:layout_marginBottom="4dp" |
| 85 | android:max="100" |
| 86 | android:layout_below="@android:id/title" |
| 87 | android:layout_alignStart="@android:id/title" |
| 88 | style="?android:attr/progressBarStyleHorizontal" /> |
| 89 | </RelativeLayout> |
Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 90 | </LinearLayout> |
Daichi Hirono | c228163 | 2015-07-02 17:54:29 +0900 | [diff] [blame] | 91 | </LinearLayout> |