summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgramFragment.cpp
diff options
context:
space:
mode:
author Adam Powell <adamp@google.com> 2010-06-10 18:58:59 -0700
committer Adam Powell <adamp@google.com> 2010-06-17 11:35:43 -0700
commit96675b1df3969f2d313b68f60ed9fa36805db8ce (patch)
tree0bf8088a354d1e4f392a6adccda1911c0a0d890e /libs/rs/rsProgramFragment.cpp
parente6ac8b9aade9443ab8456c8f7a47cdfba3b70266 (diff)
Merging ActionBar menu with options menu.
Options menu items may now specify if they would like to appear in the action bar. Menu items defined in xml may set the showAsAction attribute to one of "never"(default), "ifRoom", or "always". Action buttons are populated as follows: * All showAsAction="always" items become action buttons, even if it would crowd the navigation area of the action bar. * If there is space remaining, showAsAction="ifRoom" items are added until no more will fit comfortably. Action button click events are now handled by the onOptionsItemSelected method used by the standard options menu. The construction of options menus now happens earlier in order to provide data to the action bar. Activities with an action bar can now expect to have onCreateOptionsMenu called when activity start-up is complete. Activity#invalidateOptionsMenu can be used to force a refresh of menu items where the previous API would use ActionBar#updateActionMenu. Change-Id: If52ddf1cf9f6926206bcdeadf42072ea2c24fab9
Diffstat (limited to 'libs/rs/rsProgramFragment.cpp')
0 files changed, 0 insertions, 0 deletions