Closed GoogleCodeExporter closed 8 years ago
Also I don't see any reason this class wouldn't work identically for the
ToggleButton view?
Original comment by bric...@gmail.com
on 3 May 2012 at 2:57
Looking at the different SDK's a little more, I DEFINITELY think this class
needs to apply to both "switch views" and "toggle button views". As the switch
is not present until the more recent API's, while the toggle button has been
around since API 3. This way I can use the fancy switch on users running ICS,
and the toggle button for older users running GB.
Original comment by bric...@gmail.com
on 4 May 2012 at 12:20
Possible component name....ToggleSwitch
Original comment by bric...@gmail.com
on 4 May 2012 at 12:56
You can't have the class represent two different views. If you want a
togglebutton, along with a Switch, it can be added. Put in a new issue for that.
Switcher is the new class name. Since it's like a checkbox in function, it
throws the same "Changed" event, along with the boolean. Or, you can get the
state with switch.SwitchedOn() .
Original comment by IMPINC...@gmail.com
on 7 May 2012 at 5:11
Actually, the GLE component caused an issue, like I was afraid of. It's fine if
you're bulding your app on android 4.0, or higher. But if you base an app off a
lower API, it will cause an error in Eclipse until you delete the file. So, I
won't add a GLE component for it.
The class will remain (Switcher), just drop the default android Switch in the
GLE if you want to use it.
I suppose I will just add the Toggle class, so that there is at least one type
that is droppable in the GLE.
Original comment by IMPINC...@gmail.com
on 7 May 2012 at 5:35
Original comment by IMPINC...@gmail.com
on 10 May 2012 at 3:11
Awesome! thank!
Ya i noticed when I have the switch view in the app, if I run on anything below
ICS it crashes, even if i hide the view.
I was originally hoping to use button anything below 14, and switch for
anything above, but it would have to be done programatically which I cant
figure out how to do..
Original comment by bric...@gmail.com
on 10 May 2012 at 3:24
Original comment by IMPINC...@gmail.com
on 10 May 2012 at 7:43
Original issue reported on code.google.com by
bric...@gmail.com
on 3 May 2012 at 12:55