SegmentedButton icon indicating copy to clipboard operation
SegmentedButton copied to clipboard

Version 2.0.1 doesn't work on target sdk 26

Open benjaminvanhaelst opened this issue 7 years ago • 3 comments

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

benjaminvanhaelst avatar Oct 12 '17 09:10 benjaminvanhaelst

same problem

marzoukali avatar Dec 08 '17 12:12 marzoukali

Same for 2.0.2.

Dambakk avatar Jul 24 '18 09:07 Dambakk

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

VrasidasP avatar Oct 04 '18 06:10 VrasidasP