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:
Jake Hamby
2011-01-27 18:15:51 -08:00
parent a4035aef92
commit 3d1fd57e30
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ public class BluetoothDevicePreference extends Preference implements
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;