Android Question [HELP needed] AppCompat ACToolBarLight SetAsActionBar added to activity frome code; needs tweaking

AscySoft

Active Member
Licensed User
Longtime User
A similar question has been posted (I don't know where) but this is a different one.
I am trying to achived this (only) frome code, for my knowlege
B4X:
Sub Globals
    Private ToolBar as ACToolbarLight
End Sub
Sub Activity_Create(FirstTime As Boolean)
    ToolBar.Initialize ("ToolBar")
    Activity .AddView (ToolBar,0,0,100%x,56dip)
    ToolBar.PopupTheme=ToolBar.THEME_LIGHT
    ToolBar.Elevation = 4dip
    ToolBar.Title="Settings"
    ToolBar.SubTitle="Change settings"
    ToolBar.TitleTextColor=Colors.White
    ToolBar.SubTitleTextColor=Colors.White
    ToolBar.SetAsActionBar
End Sub
And then all the codes necessary from this thread https://www.b4x.com/android/forum/t...4-modifyable-and-advanced-menu.49128/#content
All is working as expected, but the only difference (between this code and a "ACToolbarLIght preformatted layout") is the "more" button color (the three dots button color) witch is not white as expected, but black.

I understand that between a ToolBar created with designer and this one frome code are some internal initialization differences.
Is there a way to access/set Theme property (as in "ToolBar.Theme=ToolBar.THEME_DARK") frome code? In code one could only set PopupTheme as above, but not Theme.
 
Top