Increase size of BT profile icons and decrease alpha for inactive profiles
Increase the size of the Bluetooth profile icons from 20dp to 30dp. Decrease the alpha for disabled profile icons to 50% of theme default. Bug: 3400851 Change-Id: Ieb5ecb01ccbd7185d383828e0d9c9f78525ee0c4
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
android:layout_width="20dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="20dp"
|
android:layout_height="30dp"
|
||||||
android:layout_marginRight="4dip"
|
android:layout_marginRight="4dip"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_gravity="center_vertical" />
|
android:layout_gravity="center_vertical" />
|
||||||
|
@@ -60,7 +60,7 @@ public class BluetoothDevicePreference extends Preference implements
|
|||||||
if (sDimAlpha == Integer.MIN_VALUE) {
|
if (sDimAlpha == Integer.MIN_VALUE) {
|
||||||
TypedValue outValue = new TypedValue();
|
TypedValue outValue = new TypedValue();
|
||||||
context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, outValue, true);
|
context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, outValue, true);
|
||||||
sDimAlpha = (int) (outValue.getFloat() * 255);
|
sDimAlpha = (int) ((outValue.getFloat() * 255) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
mCachedDevice = cachedDevice;
|
mCachedDevice = cachedDevice;
|
||||||
|
Reference in New Issue
Block a user