Sliding Tab
Sliding Tab
#AdditionalJar: com.android.support:support-v4
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
TabStrip1_PageSelected(0)
ListView1Page3.SingleLineLayout.Label.TextColor = Colors.Black
For i = 1 To 100
ListView1Page3.AddSingleLine($"Item ${i}"$)
Next
End Sub
Sub Activity_Resume
End Sub
file:///D|/Downloads/Sliding%20Tab/Sliding%20Tab%20-%20Copy.txt[04/06/2020 14:47:40]
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1Page1_Click
Msgbox("Home Tab", "Notice")
End Sub
Sub Panel1Page2_Click
Msgbox("Image Tab", "Notice")
End Sub
Dim i As Int
For Each lbl As Label In GetAllTabLabels(TabStrip1)
If i = Position Then
'lbl.SetColorAnimated(200, Colors.Green, Colors.Yellow)
'lbl.Color = Colors.Blue
lbl.TextColor = Colors.RGB(255,255,255)
Else
'lbl.Color = Colors.Blue
lbl.TextColor = Colors.RGB(18,140,126)
End If
i=i+1
Next
End Sub
file:///D|/Downloads/Sliding%20Tab/Sliding%20Tab%20-%20Copy.txt[04/06/2020 14:47:40]