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
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/icon"
- android:layout_width="20dp"
- android:layout_height="20dp"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
android:layout_marginRight="4dip"
android:gravity="center"
android:layout_gravity="center_vertical" />
if (sDimAlpha == Integer.MIN_VALUE) {
TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, outValue, true);
- sDimAlpha = (int) (outValue.getFloat() * 255);
+ sDimAlpha = (int) ((outValue.getFloat() * 255) * 0.5);
}
mCachedDevice = cachedDevice;