Java Code Examples for android.support.v7.view.ActionMode#getMenuInflater()
The following examples show how to use
android.support.v7.view.ActionMode#getMenuInflater() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PostDetailsActivity.java From social-app-android with Apache License 2.0 | 5 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Inflate a menu resource providing context menu items MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.comment_context_menu, menu); menu.findItem(R.id.editMenuItem).setVisible(presenter.hasAccessToEditComment(selectedComment.getAuthorId())); return true; }
Example 2
Source File: PostDetailsActivity.java From social-app-android with Apache License 2.0 | 5 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Inflate a menu resource providing context menu items MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.comment_context_menu, menu); menu.findItem(R.id.editMenuItem).setVisible(presenter.hasAccessToEditComment(selectedComment.getAuthorId())); return true; }
Example 3
Source File: ConversationFragment.java From Silence with GNU General Public License v3.0 | 5 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.conversation_context, menu); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = getActivity().getWindow(); statusBarColor = window.getStatusBarColor(); window.setStatusBarColor(getResources().getColor(R.color.action_mode_status_bar)); window.setNavigationBarColor(getResources().getColor(android.R.color.black)); } setCorrectMenuVisibility(menu); return true; }
Example 4
Source File: ActionModeTitle.java From PlayMusicExporter with MIT License | 5 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Inflate a menu resource providing context menu items MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.action_mode_selection, menu); return true; }
Example 5
Source File: MainActivity.java From ui with Apache License 2.0 | 5 votes |
@Override public boolean onCreateActionMode( ActionMode mode, Menu menu ) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate( R.menu.actionmode, menu ); MenuItem item = menu.findItem( R.id.action_text ); View v = MenuItemCompat.getActionView(item); if( v instanceof TextView ) { ((TextView)v).setText( R.string.actionmode_title ); } return true; }
Example 6
Source File: FilesListFragment.java From secrecy with Apache License 2.0 | 5 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Inflate a menu resource providing context menu items MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.file_action, menu); return true; }
Example 7
Source File: LrcJaeger.java From LrcJaeger with Apache License 2.0 | 5 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Inflate a menu resource providing context menu items MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.activity_lrc_jaeger_contextual, menu); return true; }
Example 8
Source File: MyGridAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 9
Source File: TwoLinesArrayAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 10
Source File: CountriesAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 11
Source File: ComplexItemLayoutAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 12
Source File: MyArrayAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 13
Source File: MySimpleCursorAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 14
Source File: NonCheckableItemsAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 15
Source File: GalleryAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 16
Source File: AlphabetIndexerCursorAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }
Example 17
Source File: TracksActivity.java From android_maplibui with GNU Lesser General Public License v3.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode actionMode, Menu menu) { MenuInflater inflater = actionMode.getMenuInflater(); inflater.inflate(R.menu.action_tracks, menu); return true; }
Example 18
Source File: DownloadAdapter.java From OneTapVideoDownload with GNU General Public License v3.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.menu_downloads_selected, menu); return true; }
Example 19
Source File: VideoRecyclerAdapter.java From screenrecorder with GNU Affero General Public License v3.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.video_list_action_menu, menu); return true; }
Example 20
Source File: CustomActionModeTitleAdapter.java From MultiChoiceAdapter with Apache License 2.0 | 4 votes |
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.my_action_mode, menu); return true; }