Android Question how can i change color of Disabled Label ?

mangojack

Expert
Licensed User
Longtime User
Label or object ? ... this works with Label views

B4X:
Sub Button1_Click
    If Label1.Enabled Then
       Label1.Enabled = False
       Label1.Color = Colors.Gray
    Else
       Label1.Enabled = True
       Label1.Color = Colors.White
    End If  
End Sub

obviously you can use Colors.ARGB() to change the Alpha level if needed.
 
Upvote 0
Top