am d0ec53e3
: Merge "Applied Material Spec to Bluetooth pairing dialog." into lmp-dev
* commit 'd0ec53e33360cfb5cf4c176920917ef109754f22': Applied Material Spec to Bluetooth pairing dialog.
This commit is contained in:
@@ -29,15 +29,61 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/message_caption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_marginTop="20dip"
|
||||
android:layout_marginBottom="20dip"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginTop="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
||||
android:textColor="@*android:color/secondary_text_material_light" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message_subhead"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginBottom="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Subhead" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pairing_caption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/bluetooth_pairing_key_msg"
|
||||
android:visibility="gone"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
||||
android:textColor="@*android:color/secondary_text_material_light" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pairing_subhead"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginBottom="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Headline" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pairing_code_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginBottom="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/bluetooth_enter_passkey_msg"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Subhead"
|
||||
android:textColor="@*android:color/secondary_text_material_light"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@@ -29,22 +29,31 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/message_caption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_marginTop="20dip"
|
||||
android:layout_marginBottom="20dip"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginTop="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Caption" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message_subhead"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginBottom="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Subhead" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/text"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="20dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:inputType="textPassword"
|
||||
android:singleLine="true" />
|
||||
|
||||
@@ -53,8 +62,8 @@
|
||||
android:text="@string/bluetooth_pin_values_hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
@@ -63,8 +72,8 @@
|
||||
android:text="@string/bluetooth_enable_alphanumeric_pin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
@@ -72,8 +81,8 @@
|
||||
android:id="@+id/message_below_pin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_marginStart="@dimen/bluetooth_dialog_padding"
|
||||
android:layout_marginEnd="@dimen/bluetooth_dialog_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
|
@@ -219,6 +219,7 @@
|
||||
<!-- Bluetooth Preferences -->
|
||||
<dimen name="bluetooth_dialog_padding">8dip</dimen>
|
||||
<integer name="bluetooth_name_length">32</integer>
|
||||
<dimen name="bluetooth_pairing_padding">20dp</dimen>
|
||||
|
||||
<dimen name="wifi_divider_height">1px</dimen>
|
||||
|
||||
|
@@ -1131,10 +1131,12 @@
|
||||
<string name="bluetooth_pairing_request">Bluetooth pairing request</string>
|
||||
|
||||
<!-- Message when bluetooth dialog for pin entry is showing. [CHAR LIMIT=NONE] -->
|
||||
<string name="bluetooth_enter_pin_msg">To pair with:<xliff:g id="bold"><br><b></xliff:g><xliff:g id="device_name">%1$s</xliff:g><xliff:g id="end_bold"></b><br><br></xliff:g>Type the device\'s required PIN:</string>
|
||||
<string name="bluetooth_enter_pin_msg">Device</string>
|
||||
<!-- Message when bluetooth is informing the user of the pairing key. [CHAR LIMIT=NONE] -->
|
||||
<string name="bluetooth_pairing_key_msg">Pairing code</string>
|
||||
|
||||
<!-- Message when bluetooth dialog for passkey entry is showing. [CHAR LIMIT=NONE] -->
|
||||
<string name="bluetooth_enter_passkey_msg">To pair with:<xliff:g id="bold"><br><b></xliff:g><xliff:g id="device_name">%1$s</xliff:g><xliff:g id="end_bold"></b><br><br></xliff:g>Type the device\'s required passkey:</string>
|
||||
<string name="bluetooth_enter_passkey_msg">Type the pairing code then press Return or Enter</string>
|
||||
|
||||
<!-- Checkbox label for alphanumeric PIN entry (default is numeric PIN). [CHAR LIMIT=50] -->
|
||||
<string name="bluetooth_enable_alphanumeric_pin">PIN contains letters or symbols</string>
|
||||
|
Reference in New Issue
Block a user