The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2006 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 |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 7 | |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 9 | |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 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 | <!-- Layout used for ProgressCategory in bluetooth settings. --> |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 18 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:gravity="center_vertical" |
| 22 | android:orientation="horizontal" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 23 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 24 | android:paddingTop="16dp" |
jackqdyulei | d5e20e1 | 2017-06-01 15:46:21 -0700 | [diff] [blame] | 25 | android:paddingBottom="16dp" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 26 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> |
| 27 | |
| 28 | <LinearLayout |
| 29 | android:id="@+id/icon_container" |
Fan Zhang | 031c838 | 2017-05-09 17:44:49 -0700 | [diff] [blame] | 30 | android:layout_width="56dp" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 31 | android:layout_height="wrap_content" |
| 32 | android:gravity="start|center_vertical" |
| 33 | android:orientation="horizontal"> |
| 34 | <com.android.internal.widget.PreferenceImageView |
| 35 | android:id="@android:id/icon" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 38 | android:maxWidth="18dp" |
| 39 | android:maxHeight="18dp"/> |
| 40 | </LinearLayout> |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 41 | |
Jake Hamby | 494f646 | 2012-04-16 16:30:14 -0700 | [diff] [blame] | 42 | <!-- This text view has the style of the list separator text view without the background and padding. --> |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 43 | <TextView |
Adam Lesinski | 701af87 | 2016-08-16 15:59:14 -0700 | [diff] [blame] | 44 | android:id="@android:id/title" |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 45 | android:layout_width="0dp" |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 46 | android:layout_height="wrap_content" |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 47 | android:layout_weight="1" |
Jeff Brown | 9e143f5 | 2012-09-19 20:46:07 -0700 | [diff] [blame] | 48 | android:layout_gravity="start|center" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 49 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2" |
Fan Zhang | 00d8ff5 | 2017-04-10 16:26:42 -0700 | [diff] [blame] | 50 | android:textColor="?android:attr/colorAccent"/> |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 51 | |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 52 | <ProgressBar |
| 53 | android:id="@+id/scanning_progress" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 54 | style="?android:attr/progressBarStyleSmallTitle" |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_gravity="center_vertical" |
Fabrice Di Meglio | 79d8e80 | 2012-07-19 19:25:50 -0700 | [diff] [blame] | 58 | android:layout_marginStart="16dip" |
jackqdyulei | d5e20e1 | 2017-06-01 15:46:21 -0700 | [diff] [blame] | 59 | android:minWidth="32dp" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 60 | android:text="@string/progress_scanning"/> |
Amith Yamasani | 78019ea | 2010-11-22 14:21:09 -0800 | [diff] [blame] | 61 | |
| 62 | </LinearLayout> |