All Posts For: Android

Apr 22 2014

Customizing Android ListView Rows by Subclassing

Every Android programmer will at some point customize a ListView row by creating their own layout and populating it with data. When that happens, you’ll probably reach for the Holder pattern. But the Holder pattern is clumsy and full of boilerplate, and we can do better. In this post, we explore an alternative that uses a subclass of RelativeLayout to encapsulate the customization work.

Older posts