Android Developing Tips: Using RecyclerView as Adapter-based View


As android engineer, we must already used ListView a lot if we want to show multiple items that has same template.

But there are some problems that can’t be solved by only using ListView:
1. Normally, we can only handle whole item click.
2. It’s hard to use different layout in ListView item without using ViewHolder pattern.
3. It’s become harder to handle some action within the item layout because of reason 1.

But that’s the reason why RecyclerView comes.
Continue reading

Android Developing Tips: Using AppCompat Theme


Google have launched latest Material design that brings evolution in user experience in various technologies including mobile industries, specifically Android. But this theme is still new and only Lollipop devices can support this so we can’t implement this theme directly using Material theme provided by Google.

So, how do we implement this on pre-Lollipop devices? Yes, there are various solutions. But the simple one is AppCompat v21.
Continue reading