Example usage for android.view Menu CATEGORY_SYSTEM

List of usage examples for android.view Menu CATEGORY_SYSTEM

Introduction

In this page you can find the example usage for android.view Menu CATEGORY_SYSTEM.

Prototype

int CATEGORY_SYSTEM

To view the source code for android.view Menu CATEGORY_SYSTEM.

Click Source Link

Document

Category code for the order integer for items/groups that are provided by the system -- or/add this with your base value.

Usage

From source file:info.staticfree.android.units.Units.java

@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {

    menu.add(Menu.NONE, MENU_REEDIT, Menu.FIRST, R.string.ctx_menu_reedit);
    menu.add(Menu.NONE, MENU_COPY, Menu.CATEGORY_SYSTEM, android.R.string.copy);
    menu.add(Menu.NONE, MENU_SEND, Menu.CATEGORY_SYSTEM, R.string.ctx_menu_send);
    menu.add(Menu.NONE, MENU_USE_RESULT, Menu.CATEGORY_SECONDARY, R.string.ctx_menu_use_result);

}