@ Override
public boolean onCreateOptionsMenu (Menu menu) {
/ / Inflate the menu; this adds items to the action bar if it is present
.getMenuInflater () inflate (R.menu.main, menu);.
return true;
This is the menu layout code, return true what use is it? Can not be changed false, changed what can be useful, can give us some examples?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
return true; handling this event would not continue down the pass, here terminated.
If it returns false, after performing the method in your code, and will continue to pass the event to proceed.
As to whom to pass, a different approach is different.
Reply:
Good answer on the first floor, you can give points.
No comments:
Post a Comment