SegmentedButton
SegmentedButton copied to clipboard
Version 2.0.1 doesn't work on target sdk 26
It compiles fine, but the button doesn't show up when running. I reverted back to 1.2.2 and it works just fine
I didn't thorougly investigate, so i'll just give some quick info: android studio preview 3.0 compile/targetsdk 26 occurs on device running api 25
same problem
Same for 2.0.2.
There has been changes but they are not documented...
What worked for me:
- Change group Buttons to co.ceryle.segmentedbutton.SegmentedButton s
- Set their text with app:sb_text="@string/text"
- Set the group height and the buttons' height to a specific value
- Set the buttons' layout_width to 0dp and layout_weight to 1
Should show up now. Shadows no longer work, so you'll have to use the sbg_borderColor and sbg_borderSize