# StateListDrawable

Published articles for StateListDrawable.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Selecting Items of a RecyclerView using StateListDrawables

DevFeed: [Selecting Items of a RecyclerView using StateListDrawables](<https://devfeed.tech/articles/selecting-items-of-a-recyclerview-using-statelistdrawables-29122.md>)

Original publisher: [Read original article](<https://www.grokkingandroid.com/statelistdrawables-for-recyclerview-selection/>)

Author: Wolfram Rittmeyer

Published: 2014-08-22T08:16:21Z

Content type: tutorial

Language: en

Sources: [Grokking Android](<https://devfeed.tech/sources/grokking-android.md>)

Topics: [recyclerview](<https://devfeed.tech/topics/recyclerview.md>), [Android](<https://devfeed.tech/topics/android.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [android](<https://devfeed.tech/tags/android.md>), [contextual-actionbar](<https://devfeed.tech/tags/contextual-actionbar.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [recyclerview](<https://devfeed.tech/tags/recyclerview.md>), [statelistdrawable](<https://devfeed.tech/tags/statelistdrawable.md>)

### AI overview

This tutorial presents an adapter-based approach for implementing multi-item selection in an Android RecyclerView. It recommends using StateListDrawables and the activated state, with contextual action bar support for showing selection counts and bulk deletion.

### Source excerpt

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" The post Selecting Items of a RecyclerView using StateListDrawables appeared first on Grokking Android.