Archive for the ‘Custom Controls’ Category

Scrolling Table – Part 3

Friday, October 7th, 2011

In Scrolling Table – Part 2 we looked at a technique for getting a scrolling table with a static header row by using a custom control to link the column widths of two tables, but there was no support for cells which span multiple columns. In this final part we’ll add column spanning.
(more…)

Scrolling Table – Part 2

Friday, September 30th, 2011

In Scrolling Table – Part 1 we looked at a technique for getting a scrolling table with a static header row by using two tables and hiding content in each. In this part we’ll look at a more efficient approach to the same problem.
(more…)

Custom Controls – Part 3

Friday, June 10th, 2011

In the previous article we continued the creation of a custom control and extended it to enable us to configure it via the XML layout rather than only programatically. In this article we’ll cover extending the control further so that we can properly style and theme it.

(more…)

Custom Controls – Part 2

Thursday, June 2nd, 2011

In the previous article we created a custom control which applies highlights to our text based upon a regular expression. We got this working so that we could control it programatically. In this article we’ll look at how to control things from the XML layout.

(more…)

Custom Controls – Part 1

Friday, May 27th, 2011

In a recent article we looked at how to apply themes to Android apps. In order to further explore how themes work, it is necessary to try to understand precisely how styles and themes are applied to controls. To this end, we will look at building a simple custom control, and then learn how to apply styles and themes to it.

(more…)