1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2011, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<ScrollView 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_height="match_parent" 23 android:layout_width="match_parent" 24 android:paddingTop="@dimen/bluetooth_dialog_padding_top"> 25 26 <LinearLayout 27 android:paddingStart="16dip" 28 android:layout_height="match_parent" 29 android:layout_width="match_parent" 30 android:orientation="vertical"> 31 32 <TextView 33 android:id="@+id/pairing_caption" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_marginTop="@dimen/bluetooth_dialog_padding" 37 android:layout_marginStart="@dimen/bluetooth_dialog_padding" 38 android:layout_marginEnd="@dimen/bluetooth_dialog_padding" 39 android:gravity="center_vertical" 40 android:text="@string/bluetooth_pairing_key_msg" 41 android:visibility="gone" 42 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" /> 43 44 <TextView 45 android:id="@+id/pairing_subhead" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_marginStart="@dimen/bluetooth_dialog_padding" 49 android:layout_marginEnd="@dimen/bluetooth_dialog_padding" 50 android:layout_marginBottom="@dimen/bluetooth_dialog_padding" 51 android:gravity="center_vertical" 52 android:visibility="gone" 53 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Headline" /> 54 55 <TextView 56 android:id="@+id/pairing_code_message" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_marginStart="@dimen/bluetooth_dialog_padding" 60 android:layout_marginEnd="@dimen/bluetooth_dialog_padding" 61 android:layout_marginBottom="@dimen/bluetooth_dialog_padding" 62 android:gravity="center_vertical" 63 android:text="@string/bluetooth_enter_passkey_msg" 64 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" 65 android:visibility="gone" /> 66 67 <TextView 68 android:id="@+id/pairing_group_message" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_marginStart="@dimen/bluetooth_dialog_padding" 72 android:layout_marginEnd="@dimen/bluetooth_dialog_padding" 73 android:layout_marginBottom="@dimen/bluetooth_dialog_padding" 74 android:gravity="center_vertical" 75 android:text="@string/bluetooth_paring_group_msg" 76 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 77 android:visibility="gone" /> 78 79 <LinearLayout 80 android:id="@+id/phonebook_sharing" 81 android:layout_height="wrap_content" 82 android:layout_width="match_parent" 83 android:layout_marginStart="@dimen/bluetooth_dialog_padding" 84 android:layout_marginEnd="@dimen/bluetooth_dialog_padding" 85 android:orientation="horizontal"> 86 <LinearLayout 87 android:layout_height="wrap_content" 88 android:layout_width="0dp" 89 android:layout_weight="1" 90 android:layout_marginEnd="10dp" 91 android:orientation="vertical"> 92 <TextView 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:text="@string/bluetooth_pairing_phonebook_toggle_text" 96 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" /> 97 <TextView 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:text="@string/bluetooth_pairing_phonebook_toggle_details" 101 android:hyphenationFrequency="normalFast" 102 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Caption" /> 103 </LinearLayout> 104 <Switch 105 android:id="@+id/phonebook_sharing_message_confirm_pin" 106 android:layout_width="wrap_content" 107 android:layout_height="48dp" 108 android:gravity="center_vertical" 109 android:contentDescription="@string/bluetooth_pairing_phonebook_toggle_text" 110 android:switchMinWidth="48dp" /> 111 </LinearLayout> 112 </LinearLayout> 113 114</ScrollView> 115