Material design updates for Bluetooth Settings dialog.

Bug: 17140512
Change-Id: I93dd89c3f12d8abe2041dd68faef8daf981252fb
This commit is contained in:
PauloftheWest
2014-08-24 11:10:16 -07:00
parent aa188b539b
commit 8677d04512
3 changed files with 28 additions and 1 deletions

View File

@@ -31,8 +31,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/bluetooth_preference_paired_dialog_name_label" android:text="@string/bluetooth_preference_paired_dialog_name_label"
android:textAppearance="@android:style/TextAppearance.Material.Body1"
android:textColor="?android:attr/textColorSecondary"
android:textDirection="locale" android:textDirection="locale"
android:textColor="?android:attr/colorAccent"
style="@style/bt_item_label" /> style="@style/bt_item_label" />
<EditText android:id="@+id/name" <EditText android:id="@+id/name"

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Layout used for Bluetooth PreferenceCategory in a DeviceProfilesSettings. -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+android:id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@android:style/TextAppearance.Material.Body1"
android:textColor="?android:attr/textColorSecondary"
android:paddingTop="16dip"
android:paddingBottom="16dip" />

View File

@@ -78,6 +78,7 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
addPreferencesFromResource(R.xml.bluetooth_device_advanced); addPreferencesFromResource(R.xml.bluetooth_device_advanced);
getPreferenceScreen().setOrderingAsAdded(false); getPreferenceScreen().setOrderingAsAdded(false);
mProfileContainer = (PreferenceGroup) findPreference(KEY_PROFILE_CONTAINER); mProfileContainer = (PreferenceGroup) findPreference(KEY_PROFILE_CONTAINER);
mProfileContainer.setLayoutResource(R.layout.bluetooth_preference_category);
mManager = LocalBluetoothManager.getInstance(getActivity()); mManager = LocalBluetoothManager.getInstance(getActivity());
CachedBluetoothDeviceManager deviceManager = CachedBluetoothDeviceManager deviceManager =