Android Question AC ToolBar change menu button color

Mike1970

Well-Known Member
Licensed User
Hi everyone!
How do I change the color of this three dots?

Screenshot_20191116_234320.jpg
 

Mike1970

Well-Known Member
Licensed User
So you need to compare it to your project.
I noticed that you added the MenuItem with a Java function.
Not using "
B4X:
Activity.AddMenuItem("First","First")
like i did.
So if it's that the problem i have to change everything just for change the color... i thought there was a simpler way.
I will try in a empty project
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
That's not correct.
At this point i didn't understand what is this :D:D:

B4X:
Sub Activity_CreateMenu(Menu As ACMenu)
    Menu.Clear
    Menu.Add(0, 0, "Overflow1", Null)
    Menu.Add(0, 0, "Overflow2", Null)
    Menu.Add(0, 0, "Overflow3", Null)
    Dim item As ACMenuItem = ACToolBarLight1.Menu.Add2(0, 0, "cart", Null)
    item.ShowAsAction = item.SHOW_AS_ACTION_ALWAYS
    UpdateIcon("cart", AddBadgeToIcon(cartBitmap, badge))
End Sub

B4X:
#If Java

public boolean _onCreateOptionsMenu(android.view.Menu menu) {
    if (processBA.subExists("activity_createmenu")) {
        processBA.raiseEvent2(null, true, "activity_createmenu", false, new de.amberhome.objects.appcompat.ACMenuWrapper(menu));
        return true;
    }
    else
        return false;
}
#End If
 
Upvote 0
Top