B4A Library SlideSwitch V1.0.2

DonManfred

Expert
Licensed User
Longtime User
but i cannot slide to end exactly
Check the threshold set... The default is 0.7 which means on 70% you get the confirmed event... Set it to 0.99 or maybe 1.0

For any new question please start a new thread in the questionforum as the question belong not to this thread. SlideSwitch
 

devmobile

Active Member
Licensed User
Check the threshold set... The default is 0.7 which means on 70% you get the confirmed event... Set it to 0.99 or maybe 1.0

For any new question please start a new thread in the questionforum as the question belong not to this thread. SlideSwitch
Why do you are best man?
 

devmobile

Active Member
Licensed User
Does that mean it is working for you now?
Yes
But it have 3 bug
1.It raise event Press and cancel when user click on it (no swipe)
2.If user click on middle it and swipe it and swipe it,Confirm event to raised because user have to swipe it to out of view
3.We cannot change default background,at the moment it is transparent and i cannot change it
 

NetChain

Member
Thanks for a nice example.

One of the most important differences between a simple toggle switch and the slider switch is the very fact that you have to slide it to engage, instead of just touching it. It's nice that you made your switch sliding upon touching it, but that deceives the purpose of the sliding switch. I mean now it's just a toggle switch with a visual effect, but I wouldn't call it a slider switch.

Unfortunately you can not use this switch in apps like an alarm clock or any other notifications which wakes up your phone, because the screen with the switch can accidentally touch a surface in your pocket and will get falsely engaged.

Question: Is it possible to disable the automatic sliding upon touching? I was hoping to find a slider switch where a user MUST slide (not touch), like when you answer your phone or snooze your alarm clock.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…