Hi, I use UpdateTopbarItem to showing time. But Could i how to chage its size and color ?
B4X:
Sub timer1_Tick
Timer1.Interval=1000
Dim comp As ABMContainer = page.NavigationBar.SideBarTopComponent
DateTime.TimeFormat="HH:mm:ss"
page.NavigationBar.UseTheme("topTime")
page.NavigationBar.UpdateTopbarItem("datetime","",DateTime.Time(DateTime.Now))
End Sub
I think you can do it using the theme settings...
Almost every component has a forecolor, forecolor tensity, backgroundcolor and backgroundcolorintensity
Have you created the theme in the buildTheme or in ABMShared?
My theme.AddTopNavigationBar("topTime")
MyTheme.TopNavigationBar("topTime").ForeColor = ....
This is to be considered as pseudo-code as I am not at my pc to be sure of it
Try setting page.NavigationBar.UseTheme("topTime") not in the timer, but in the ConnectPage().
UpdateTopbarItem() can not change the color at run time.