I have applied the overflow button using the following Base XML:
& lt ;; Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Menu xmlns: Android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Android: id = "@ + id / action_settings" Android: orderInCategory = "100" Android: Title = "Settings" Android: Icon = "@Drawable / IC_Action_Overflow" Android: showAsAction = "always" & gt; & Lt; Menu & gt; & Lt; Android Android: id = "@ + id / action_logout" Android: Title = "Logout" Android: showAsAction = "never" /> & Lt; Android Android: id = "@ + id / action_offer_advice" Android: Title = "Advice" Android: showAsAction = "never" /> & Lt; / Menu & gt; & Lt; / Item & gt; & Lt; Item android: id = "@ + id / action_create" Android: title = "create" Android: icon = "@drawable / ic_action_new" Android: ShowAsaction = "always" /> & Lt; / Menu & gt;
I did this because I want the overflow button to be on every Android device, regardless of the physical menu button, I have challenged the fact that several times the stack overflow on the hacked solution Has been introduced. It is being said that I am a little fuzzy with the actionbars and I should be positive that the default overflow of Android will not be shown for users who do not have a physical menu button, it is an overflow button with the default of Android It will be very strange for your implementation.
Am I not worried anything? Is this a legitimate concern? If this is a legitimate concern, how can I control it? Personally, I would say that this is not a concern of the Android operating system (eg Gallery app).
Another situation you may not have considered is that the user's menu button is not functional on the device, so that your action bar is tiddling to become a problem.
There is a surefire way of getting into it, but solving what you are trying to achieve can lead to more problems.
Comments
Post a Comment