Skip to content

Quick action: Support for different backgrounds and quick actions #2

@Knickedi

Description

@Knickedi

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...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions