I have a button that on certain phones is too hard to click because of its size.
But making it bigger breaks layout.
It is possible to explain to a view that it has a bigger "click box" than its visible area?
Not sure if this can help:
If you use an ImageButton with no background and you set a Padding value, your button will have a larger clickable area.
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/img_close" android:id="@+id/btnClose"
android:padding="25dip" android:background="#0000"></ImageButton>
Propably the best thing would be to create a layout for each density / screen size.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With