Grokking Android

Getting Down to the Nitty Gritty of Android Development

Posts tagged “StateListDrawable”:

Selecting Items of a RecyclerView using StateListDrawables

By

Last week, after I published my introduction to RecyclerView Paul Betts asked on Twitter whether ItemDecorators are useful for displaying the selection state of items. Well, I think using them for selection is not the right way to go. Instead, I think that you should stick with StateListDrawables and the activated state. The use case […]  Continue Reading  “Selecting Items of a RecyclerView using StateListDrawables”