mrossen Active Member Licensed User Longtime User Apr 9, 2015 #1 Hi, I am a bit confused about what I think is a simple thing I use this code: Code: Copy Dim bd As BitmapDrawable Dim ph As Phone bd = ph.GetResourceDrawable(17301577) Activity.AddMenuItem3("Preferences", "Prefs", bd.Bitmap,True) to add a menu item. According to the help text the icon should we shown in the action bar, if there is Space for it, as I understand it. But it are shown in the bottom, not in the top bar as I expected. When I turn the phone to landscape it Works like i will have it to. The app uses the StdActionBar, if that have any difference. Mogens Attachments fc1.png 66.7 KB · Views: 442
Hi, I am a bit confused about what I think is a simple thing I use this code: Code: Copy Dim bd As BitmapDrawable Dim ph As Phone bd = ph.GetResourceDrawable(17301577) Activity.AddMenuItem3("Preferences", "Prefs", bd.Bitmap,True) to add a menu item. According to the help text the icon should we shown in the action bar, if there is Space for it, as I understand it. But it are shown in the bottom, not in the top bar as I expected. When I turn the phone to landscape it Works like i will have it to. The app uses the StdActionBar, if that have any difference. Mogens
mrossen Active Member Licensed User Longtime User Apr 9, 2015 #2 Hi, Erel had already posted to sosution to this isue https://www.b4x.com/android/forum/t...dmenuitem3-icon-not-appear.50156/#post-313685 Answer: Remove this line from the manifest editor: SetApplicationAttribute(android:uiOptions, "splitActionBarWhenNarrow") Mogens Upvote 0
Hi, Erel had already posted to sosution to this isue https://www.b4x.com/android/forum/t...dmenuitem3-icon-not-appear.50156/#post-313685 Answer: Remove this line from the manifest editor: SetApplicationAttribute(android:uiOptions, "splitActionBarWhenNarrow") Mogens