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

Version 2.0.1 doesn't work on target sdk 26 #26

Open
benjaminvanhaelst opened this issue Oct 12, 2017 · 3 comments
Open

Version 2.0.1 doesn't work on target sdk 26 #26

benjaminvanhaelst opened this issue Oct 12, 2017 · 3 comments

Comments

@benjaminvanhaelst
Copy link

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

@marzoukali
Copy link

same problem

@Dambakk
Copy link

Dambakk commented Jul 24, 2018

Same for 2.0.2.

@VrasidasP
Copy link

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

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

4 participants