Android Question SlideSwitch Lib issue

Discussion in 'Android Questions' started by sz4t4n, Jun 14, 2018.

  1. sz4t4n

    sz4t4n Member Licensed User

    hello,

    my post is abaout this lib -> https://www.b4x.com/android/forum/threads/slideswitch-v1-0-2.51749/


    thanks for the great lib but i have some issue. In target sdk version 26 slideswitch has always grey color when its close. On open event ist work ok but I dont know how to change color when its close. Any ideas?

    simple code...

    Code:
    Sub SlideSwitch1_open(swview As Object,token As Object)
        
    Log("Slide OPEN (Token = "&token&")")
        SlideSwitch1.Color = 
    Colors.Green
        
    End Sub

    Sub SlideSwitch1_close(swview As Object,token As Object)
        
    Log("Slide CLOSE (Token = "&token&")")
        SlideSwitch1.Color = 
    Colors.Red
    End Sub
     
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