Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

How to make button group background and selector background from a custom drawable. #3

Closed
kusraevs opened this issue Oct 18, 2016 · 3 comments

Comments

@kusraevs
Copy link

Hello. Thank you for this cool library. I need to make gradient on button group background. Is there a way to do this now?

@kusraevs kusraevs changed the title How to make button group background from a custom drawable. How to make button group background and selector background from a custom drawable. Oct 18, 2016
@ceryle
Copy link
Owner

ceryle commented Oct 18, 2016

Hi,
Thank you for the kind words. I updated the library, you can use "v1.1.3". I also added an example in sample project. Below code snippet shows how to use new attributes.

app:sbg_backgroundDrawable="@drawable/gradient_drawable"
app:sbg_selectorBackgroundDrawable="@drawable/gradient_drawable_selector"
app:sbg_dividerBackgroundDrawable="@drawable/gradient_drawable_divider"

@kusraevs
Copy link
Author

Well done! Thank you very much.

@ceryle
Copy link
Owner

ceryle commented Oct 18, 2016

You're welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants