Wish Switch view with designer, swipe, theme support

Discussion in 'Bugs & wishlist' started by daemon, Jan 29, 2015.

  1. daemon

    daemon Active Member Licensed User

  2. Erel

    Erel Administrator Staff Member Licensed User

    The limitations are related to the native Switch view.
  3. daemon

    daemon Active Member Licensed User

    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:
  4. thedesolatesoul

    thedesolatesoul Expert Licensed User

    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.
    daemon likes this.
  5. daemon

    daemon Active Member Licensed User

    That sounds like a good idea. Let me give it a try...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice