Android Action bar Sherlock show actions items in dropdown always -
I have set up three action items that connect the AMS to Menu XML like:
& Lt; Menu xmlns: android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Item android: id = "@ + id / menu_share_app" Android: icon = "@drawable / share_ab" android: showAsAction = "collapseActionView" Android: title = "@ string / menu_share_app" /> Android: Android: showAsAction = "always" Android: title = "@ string / menu_say" /> Android: Android: showAsAction = "collapseActionView" Android: title = "@ string / menu_settings" /> & lt; / Menu & gt; I want to show the search object alwys and the other two in a dropdown, I created the showcase as a "collapse actionview", but I can not find a dropdown. Here's the sample photo of what's expected thanks! :)
I just changed the code and the order.
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Menu xmlns: Android = "http://schemas.android.com/apk/res/android" & gt; Android: Android: showAsAction = "Always" Android: Title = "@ String / Menu_say" /> & lt; Item android: id = "@ + id / menu_share_app" Android: icon = "@drawable / share_ab" android: showAsAction = "never" android: title = "@ string / menu_share_app" /> Android: Android: showAsAction = "never" android: title = "@ string / menu_settings" /> & Lt; / Menu & gt; If you have a physical menu button (like Nexus S) in your device, the dot line will not be visible. Even if your AVD emulates a device that has a physical menu button, then it will be so. When you press the Menu button, it will appear.
Comments
Post a Comment