]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Use ImageButton for up and down, make them finger-friendly.
authorUwe Trottmann <uwe.trottmann@gmail.com>
Tue, 14 Aug 2012 08:33:33 +0000 (10:33 +0200)
committerUwe Trottmann <uwe.trottmann@gmail.com>
Tue, 14 Aug 2012 08:33:33 +0000 (10:33 +0200)
res/layout/dictionary_activity.xml

index cf514158e8ba2528b63cef7c899a86ff3b8e1ba5..640d9749ebdc9b3c39354642a69f68d8489d8cac 100644 (file)
             android:padding="@dimen/default_padding"
             android:src="@drawable/ic_input_delete" />
 
-        <Button
+        <ImageButton
             android:id="@+id/DownButton"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:background="#00000000"
-            android:drawableLeft="@drawable/arrow_down_float"
-            android:minHeight="30dip"
-            android:minWidth="30dip" />
+            style="@style/BorderlessButton"
+            android:layout_width="48dp"
+            android:layout_height="48dp"
+            android:src="@drawable/arrow_down_float" />
 
-        <Button
+        <ImageButton
             android:id="@+id/UpButton"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:background="#00000000"
-            android:drawableLeft="@drawable/arrow_up_float"
-            android:minHeight="30dip"
-            android:minWidth="30dip" />
+            style="@style/BorderlessButton"
+            android:layout_width="48dp"
+            android:layout_height="48dp"
+            android:src="@drawable/arrow_up_float" />
     </LinearLayout>
 
     <ListView