alexrainman / SegmentedControl

MIT License
86 stars 38 forks source link

Control is not working on Lollipop #65

Closed darrenzully closed 7 years ago

darrenzully commented 7 years ago

I´m using this control in my apps and it works on all versions but Lollipop, do you have a fix or workaround for it?

alexrainman commented 7 years ago

Actually not. Sorry. Some APIs dont work in Lollipop.

Update: this was incorrect from my side. The control works on APIs >= 18.

darrenzully commented 7 years ago

Useless control.

alexrainman commented 7 years ago

Really? Then don't "use" it.

alexrainman commented 7 years ago

Wait a minute. The control should work on APIs >= 18. Can you provide StackTrace? Exception?

darrenzully commented 7 years ago

There are no exceptions, I'm using the control in the same way that your SecondPage example, when I click on one of the buttons the event is fired, but the control does not change the color and it's not selected.

alexrainman commented 7 years ago

Very strange. Will run some tests.

darrenzully commented 7 years ago

It seems to be that in Lollipop the page is not refreshing. In all the others apis it's working fine, but in Lol when you clicked on a button, the page changes controls' states but it's not reflected in the page.

darrenzully commented 7 years ago

I solved, your control is fine, and is very USEFULL :) On Lollipop there is a bug with PushAsync true, that crashes the app, I changed to false and it's working. SORRY!