OSDN Git Service

b/2110458 Fixed the problem where 2 clicks were needed to invoke fasttrace from Event...
authorMichael Chan <mchan@android.com>
Thu, 17 Sep 2009 04:30:21 +0000 (21:30 -0700)
committerMichael Chan <mchan@android.com>
Thu, 17 Sep 2009 04:37:44 +0000 (21:37 -0700)
Fixed the problem where the trackball wasn't highlighting the badge.

res/drawable/fasttrack_badge.xml
res/layout/contact_item.xml

index b3135f1..8261e46 100644 (file)
@@ -16,6 +16,6 @@
 
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     <item android:state_pressed="true" android:drawable="@drawable/fasttrack_badge_light_pressed" />
-    <item android:state_selected="true" android:drawable="@drawable/fasttrack_badge_light_pressed" />
+    <item android:state_focused="true" android:drawable="@drawable/fasttrack_badge_light_pressed" />
     <item android:drawable="@drawable/fasttrack_badge_light_normal" />
 </selector>
index eaaed51..766aa9c 100644 (file)
@@ -37,9 +37,7 @@
         android:layout_marginBottom="3dip"
         android:layout_alignParentLeft="true"
         android:layout_centerVertical="true"
-        android:clickable="true"
         android:focusable="true"
-        android:focusableInTouchMode="true"
         android:src="@drawable/ic_contact_picture"
         android:background="@drawable/fasttrack_badge" />