ceryle / SegmentedButton

Segmented Control with animation for Android API 12+
Apache License 2.0
364 stars 97 forks source link

app:sbg_backgroundColor transparent as the background, #8

Open joShinichi opened 7 years ago

joShinichi commented 7 years ago

i use your library and that's was awesome...

when I was setting app:sbg_backgroundColor becomes transparent as the background, and when I run the application, the button on the left being the same as the color of the app: sbg_selectorColor

please fix it :)

ceryle commented 7 years ago

Firstly thank you. As for your question, sorry but it is not possible. There are actually three layers in SegmentedButton. Two of them is for actual background and one is for selector. If those two's backgrounds are made transparent, selector's color becomes the only visible one and makes the whole group to its color. I should have added this info in 'readme' file, sorry for that. I will add it right away.

joShinichi commented 7 years ago

thanks for fast response :)