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 [...]
Tags: android development, android ui design, bounding box, button, drawable, hit area, inset
Comments: 3
29 June, 2011 (09:23) | Components, UI Design | By: Randall Mitchell
I thought I would share this quick tip I just cooked up. To create a drop shadow below a layout component, you can add a “view” of the same width immediately below that component and set the background of that view to a drawable xml file containing a gradient. Here is an example layout file [...]
Tags: android development, android ui design, custom component, dropshadow
Comments: 6
26 May, 2011 (20:58) | Components | By: Randall Mitchell
This example puts a couple of TextViews into a LinearLayout. The combination of components is then treated as one component with the added functionality of programmatically changing the text of the two TextViews.
Tags: android, android development, composite component, custom component
Comments: 3
11 June, 2010 (15:12) | Components | By: Randall Mitchell
The ListView is given very little documentation at Android.com. I thought I could explain a little further how a ListActivity class functions. This is a simple example and I may decide to create a more advanced tutorial on this topic in the future. So let’s get to coding.
Tags: android, ArrayAdapter, development, ListActivity, ListAdapter, ListView, mobile
Comments: 13