1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Small switch

Discussion in 'Android Questions' started by asales, Apr 19, 2019.

  1. asales

    asales Well-Known Member Licensed User

    Is possible to decrease the height of the B4xSwitch (right) to made it smaller, like the left image?

    Thanks in advance for any tip.

    switch4.jpg
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It looks like the native switch view. You can add it with ViewsEx library.
     
  3. asales

    asales Well-Known Member Licensed User

    Yes. Is the native switch from ViewEx library.
    But I want to change to B4xSwitch and made it smaller.
    Is possible change the height/width of the B4xSwitch by code?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is possible to change it however you like but you will need to modify the source code of B4XSwith (shouldn't be too difficult). Unzip XUI Views.b4xlib to find the code.
     
    asales likes this.
Loading...
  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