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 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<!-- Layout used for ProgressCategory in bluetooth settings. --> 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:gravity="center_vertical" 22 android:orientation="horizontal" 23 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 24 android:paddingTop="16dp" 25 android:paddingBottom="16dp" 26 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> 27 28 <LinearLayout 29 android:id="@+id/icon_container" 30 android:layout_width="56dp" 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" 38 android:maxWidth="18dp" 39 android:maxHeight="18dp"/> 40 </LinearLayout> 41 42 <!-- This text view has the style of the list separator text view without the background and padding. --> 43 <TextView 44 android:id="@android:id/title" 45 android:layout_width="0dp" 46 android:layout_height="wrap_content" 47 android:layout_weight="1" 48 android:layout_gravity="start|center" 49 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2" 50 android:textColor="?android:attr/colorAccent"/> 51 52 <ProgressBar 53 android:id="@+id/scanning_progress" 54 style="?android:attr/progressBarStyleSmallTitle" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_gravity="center_vertical" 58 android:layout_marginStart="16dip" 59 android:minWidth="32dp" 60 android:text="@string/progress_scanning"/> 61 62</LinearLayout> 63