i'm using the last version of AppCompat library 3.20
B4X:
Sub Activity_CreateMenu(Menu As ACMenu)
sv.Initialize2("Search", sv.THEME_DARK)
sv.IconifiedByDefault = True
'Clear the menu
Menu.Clear
'Add a menu item and assign the SearchView to it
si = Menu.Add(1, 1, "Item1", Null)
si = Menu.Add(2, 2, "Item2", Null)
si = Menu.Add(3, 3, "Item3", Null)
si = Menu.Add(4, 4, "Item4", Null)
si = Menu.Add(5, 5, "Item5", Null)
si.SearchView = sv
End Sub
i have notice that a item is present into the toolbar, the other items are into the menu.
is it possibible set/fix 2-3 items in toolbar and other items into menu.