OSDN Git Service

Increase size of BT profile icons and decrease alpha for inactive profiles
authorJake Hamby <jhamby@google.com>
Fri, 28 Jan 2011 02:15:51 +0000 (18:15 -0800)
committerJake Hamby <jhamby@google.com>
Fri, 28 Jan 2011 02:33:17 +0000 (18:33 -0800)
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

res/layout/profile_icon_small.xml
src/com/android/settings/bluetooth/BluetoothDevicePreference.java

index b0a9f4b..3a113e0 100644 (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" />
index fc40bc1..6a0b881 100644 (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;