Android Question SlideSwitch Lib issue

sz4t4n

Member
Licensed User
Longtime 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...

B4X:
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
 
Top