Another Android Blog

Insights into those hard to solve Android Development problems

Skip to: Content | Sidebar | Footer

Tag: hit area

Button Hit Area for Custom Graphics

1 July, 2011 (14:13) | Components, UI Design | By: Randall Mitchell

I decided to create an “irregularly shaped” and small arrow image to be used as a button. The problem was, when I set it as a background image, the hit area only reported when the actual image was being hit. The quick fix is to use a drawable inset to create a bounding box around [...]