Knickedi/android-toolbox — Issue #2: Quick action support for different backgrounds and quick actions
Author: Knickedi
Created: 2011-10-26 13:23:42+00:00
State: open

Quote of the request:

> Hey Knickedi,

> Fantastic tools! One thing I was hoping to learn was whether it is possible to specify a different background drawable for each item in the list's adapter. In my example I want to color code comments. So I either want:
> `mQuickActionSetup.setBackgroundResource(R.drawable.comment_background_blue);`
> or
> `mQuickActionSetup.setBackgroundResource(R.drawable.comment_background_red);`

> However if I specify this in the getView method, all the comments will have the background of the last value specified. Could you point me in the right direction for modifying your library to support multiple backgrounds for the hidden view?

> On the same topic, specifying differing drawables for the action item icons that are revealed in each list item would also be a welcome addition.

> Thanks!
> Brian

I'm working on that. Hope to commit API extension soon...