Thursday, March 27, 2014

[Help] how Andrews virtual menu keys placed below the screen?


I do effect:

I hope to achieve results:

| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
An example of code using the
online imitate qqLink here: http://blog.csdn.net/lizzy115/article/details/7667184

Basically it works, I know everything, but after I've finished a virtual menu keys are always in the title bar, and according to his blog to say that the system itself can shield the menu, but I can not be done in the future is shielded. I think that is the problem set, in the sample code works in my stuff and write it again, after finished the virtual menu key really down. Now I would like to ask in the end because of what that button always stay in the title bar. This button will cancel the title bar is not down. Most troublesome is that I follow his own code to open a project written words even shield its own system menu can not do ............ but also look great God enlighten about which way it is Is not get out.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
You ActionBar the effect is the default style, I suggest you use this effect, because it is consistent with the native design to reduce the user's learning costs.
The following seems to be compiled with a lower version sdk apk, 2.3 and below, there is no native api ActionBar, the estimate is for this reason.
Reply:
I always use the 4.3 compiler Yeah these two are my own compiled in an environment and I installed the 4.3 sdk on it should not be the right thing together, another big ask God
@ Override
public boolean onMenuOpened (int featureId, Menu menu) {
/ / TODO Auto-generated method stub
if (popup! = null) {
menulists = MenuUtils.getMenuList ();
menuAdapter = new MenuAdapter (this, menulists);
menuGridView.setAdapter (menuAdapter);
popup.showAtLocation (this.findViewById (R.id.linearlayout), Gravity.BOTTOM, 0, 0);
}
return false ;/ / returns true system displays the menu
}

The above code returns false, then why is the menu system ...... what reality it can shield the system menu is no way to do it?
Reply:
Not actionbar, set tagart the api level to less than 11.
Reply:
Thank you, my dear friend who is a truly upstairs sdk problem ...... In addition, I would like to ask if I have more than one activity, then how can we allow them to share this menu?
Reply:
If you are not a temporary method of setting tagart api level is less than 11 this method because it is after all a problem after updating sdk cause? If you want the perfect solution to the problem, then is not it another way or optionmenu making?

No comments:

Post a Comment