ceryle / SegmentedButton

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

Want set drawable object to SegmentedButton dynamically. #24

Open sys1yagi opened 7 years ago

sys1yagi commented 7 years ago

Hi,

SegmentedButton can only set drawable res id. I want the setter of Drawable object like below.

val drawable: Drawable = // create drawable dynamically.
segmentedButton.setDrawable(drawable)