Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2016 The Android Open Source Project |
| 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 |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 21 | android:paddingStart="@dimen/preference_no_icon_padding_start" |
Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 22 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 23 | android:orientation="vertical"> |
| 24 | |
| 25 | <TextView |
| 26 | android:id="@android:id/title" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="wrap_content" |
Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 29 | android:layout_marginTop="0dp" |
| 30 | android:layout_marginBottom="5dp" |
Andrew Sapperstein | be3972d | 2017-06-08 17:27:14 -0700 | [diff] [blame] | 31 | android:fontFamily="@*android:string/config_headlineFontFamily" |
| 32 | android:paddingTop="0dp" |
Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 33 | android:textColor="?android:attr/colorAccent" |
| 34 | android:textAppearance="@android:style/TextAppearance.Material.Display1" |
| 35 | /> |
| 36 | |
| 37 | <TextView android:id="@android:id/summary" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:textAppearance="?android:attr/textAppearanceListItemSecondary" |
| 41 | android:textColor="?android:attr/textColorSecondary" |
| 42 | android:paddingBottom="5dp" |
| 43 | android:maxLines="10" /> |
| 44 | |
Andrew Sapperstein | 38bf192 | 2018-03-18 15:53:09 -0700 | [diff] [blame] | 45 | <ProgressBar |
Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 46 | android:id="@+id/color_bar" |
Andrew Sapperstein | 38bf192 | 2018-03-18 15:53:09 -0700 | [diff] [blame] | 47 | style="?android:attr/progressBarStyleHorizontal" |
Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 48 | android:layout_width="match_parent" |
Andrew Sapperstein | 38bf192 | 2018-03-18 15:53:09 -0700 | [diff] [blame] | 49 | android:layout_height="wrap_content" |
| 50 | android:progressDrawable="@drawable/color_bar_progress"/> |
Jason Monk | b37e288 | 2016-01-11 14:27:20 -0500 | [diff] [blame] | 51 | |
| 52 | <LinearLayout |
| 53 | android:id="@+id/label_bar" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:paddingTop="2dp" |
| 57 | android:orientation="horizontal"> |
| 58 | |
| 59 | <TextView android:id="@android:id/text1" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:textAppearance="?android:attr/textAppearanceListItemSecondary" |
| 63 | android:textColor="?android:attr/textColorSecondary" /> |
| 64 | |
| 65 | <Space |
| 66 | android:layout_width="0dp" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:layout_weight="1" /> |
| 69 | |
| 70 | <TextView android:id="@android:id/text2" |
| 71 | android:layout_width="wrap_content" |
| 72 | android:layout_height="wrap_content" |
| 73 | android:textAppearance="?android:attr/textAppearanceListItemSecondary" |
| 74 | android:textColor="?android:attr/textColorSecondary" /> |
| 75 | |
| 76 | </LinearLayout> |
| 77 | |
| 78 | </LinearLayout> |
| 79 | |