am 3d1fd57e: Increase size of BT profile icons and decrease alpha for inactive profiles

* commit '3d1fd57e3063d9501266dc46e13df63eb4ba685a':
  Increase size of BT profile icons and decrease alpha for inactive profiles
This commit is contained in:
Jake Hamby
2011-01-27 18:38:58 -08:00
committed by Android Git Automerger
2 changed files with 3 additions and 3 deletions

View File

@@ -16,8 +16,8 @@
<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" />

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;