Android Question B4x pages . Highlighting panel .

Pepebis

Member
Licensed User
Longtime User
Dear all ,
What is the simplest way to highlight the panel on a click?
As it's mentioned above I'm using b4x pages . Do i need to use timer ?
Best Regards ,
Przemek Biskup
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
    Private Panel1 As B4XView
End Sub

Public Sub Initialize
    
End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
End Sub

Private Sub Panel1_Click
    Panel1.SetColorAnimated(100, xui.Color_Green, xui.Color_Blue)
    Sleep(150)
    Panel1.SetColorAnimated(100, xui.Color_Blue, xui.Color_Green)
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…