I am having a problem trying to set the background color of the title bar in app. In the Activity_Create sub I have:
Sub Activity_Create(FirstTime As Boolean)
Dim BGcolor1 As Int : BGcolor1 = Colors.RGB(101,12,27)
Dim FGColor1 As Int : FGcolor1 = Colors.RGB(255,204,102)
Activity.LoadLayout("mainLayout")
Activity.Title = appname
Activity.TitleColor = Textcolor1
Activity.Color = BGcolor1
where BGcolor1 is set to dark red. Also in the Designer I have set the background of mainLayout to dark red. However, the background color of the title bar appears as blue. Should this be set somewhere else?
My second query is in relation to the default color of the tabs in a tabhost view. Again the tabs appear as blue, same as the title background. I tried using setTabGradientDrawable as follows:
TabManager.setTabGradientDrawable(TabHost1, "LEFT_RIGHT", FGcolor1, BGColor1, cornerRadius2)
but the result was not very pretty as the tabs seemed to be merged together without a distinguishing gap between them.
Any help would be appreciated.
Thanks,
Seamus
Sub Activity_Create(FirstTime As Boolean)
Dim BGcolor1 As Int : BGcolor1 = Colors.RGB(101,12,27)
Dim FGColor1 As Int : FGcolor1 = Colors.RGB(255,204,102)
Activity.LoadLayout("mainLayout")
Activity.Title = appname
Activity.TitleColor = Textcolor1
Activity.Color = BGcolor1
where BGcolor1 is set to dark red. Also in the Designer I have set the background of mainLayout to dark red. However, the background color of the title bar appears as blue. Should this be set somewhere else?
My second query is in relation to the default color of the tabs in a tabhost view. Again the tabs appear as blue, same as the title background. I tried using setTabGradientDrawable as follows:
TabManager.setTabGradientDrawable(TabHost1, "LEFT_RIGHT", FGcolor1, BGColor1, cornerRadius2)
but the result was not very pretty as the tabs seemed to be merged together without a distinguishing gap between them.
Any help would be appreciated.
Thanks,
Seamus