D daemon Active Member Licensed User Longtime User Jan 29, 2015 #1 I wish to have a switch view that is designer friendy, swipe ready, lets one select colors, width, corner radius, etc. The Switch View wrapper has many limitations. https://www.b4x.com/android/forum/threads/switch-view-android-4.38971/page-3#post-303827
I wish to have a switch view that is designer friendy, swipe ready, lets one select colors, width, corner radius, etc. The Switch View wrapper has many limitations. https://www.b4x.com/android/forum/threads/switch-view-android-4.38971/page-3#post-303827
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2015 #2 The limitations are related to the native Switch view.
D daemon Active Member Licensed User Longtime User Jan 29, 2015 #3 Yes, I understand. Hence, this wish for an exclusive B4x switch view. I assume it is possible to create a custom B4x-only view? Currently I'm mimicing such a view using a label (background) and two buttons (only one of which is visible), but it requires a lot of manipulations and doesn't support swipe:
Yes, I understand. Hence, this wish for an exclusive B4x switch view. I assume it is possible to create a custom B4x-only view? Currently I'm mimicing such a view using a label (background) and two buttons (only one of which is visible), but it requires a lot of manipulations and doesn't support swipe:
thedesolatesoul Expert Licensed User Longtime User Jan 29, 2015 #4 Actually its simpler to build this in B4A rather than a java lib. Use GestureDetector to detect swipe and possibly native Panel.SetLayout for the animation. Its not alot of code if you know what you are doing.
Actually its simpler to build this in B4A rather than a java lib. Use GestureDetector to detect swipe and possibly native Panel.SetLayout for the animation. Its not alot of code if you know what you are doing.
D daemon Active Member Licensed User Longtime User Jan 30, 2015 #5 That sounds like a good idea. Let me give it a try...