Search in sources :

Example 21 with MenuInflater

use of android.view.MenuInflater in project Trello-Android by chrisHoekstra.

the class CardActivity method onCreateContextMenu.

@Override
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo info) {
    super.onCreateContextMenu(menu, view, info);
    MenuInflater inflater = getMenuInflater();
//inflater.inflate(R.menu.menu_id, menu);
}
Also used : MenuInflater(android.view.MenuInflater)

Example 22 with MenuInflater

use of android.view.MenuInflater in project Trello-Android by chrisHoekstra.

the class DashboardActivity method onCreateContextMenu.

@Override
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo info) {
    super.onCreateContextMenu(menu, view, info);
    MenuInflater inflater = getMenuInflater();
//inflater.inflate(R.menu.menu_id, menu);
}
Also used : MenuInflater(android.view.MenuInflater)

Example 23 with MenuInflater

use of android.view.MenuInflater in project android_frameworks_base by ParanoidAndroid.

the class BiDiTestActivity method onCreateOptionsMenu.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.main_menu, menu);
    return true;
}
Also used : MenuInflater(android.view.MenuInflater)

Example 24 with MenuInflater

use of android.view.MenuInflater in project android_frameworks_base by ParanoidAndroid.

the class DirListActivity method onCreateOptionsMenu.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.gui_menu, menu);
    return true;
}
Also used : MenuInflater(android.view.MenuInflater)

Example 25 with MenuInflater

use of android.view.MenuInflater in project android_frameworks_base by ParanoidAndroid.

the class SimpleModel method onCreateOptionsMenu.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.loader_menu, menu);
    return true;
}
Also used : MenuInflater(android.view.MenuInflater)

Aggregations

MenuInflater (android.view.MenuInflater)283 MenuItem (android.view.MenuItem)26 Intent (android.content.Intent)11 View (android.view.View)11 SearchView (android.support.v7.widget.SearchView)10 IconicsDrawable (com.mikepenz.iconics.IconicsDrawable)9 Menu (android.view.Menu)8 AdapterView (android.widget.AdapterView)8 SearchManager (android.app.SearchManager)5 Point (android.graphics.Point)5 TextView (android.widget.TextView)5 MenuBuilder (com.android.internal.view.menu.MenuBuilder)5 ActionBar (android.app.ActionBar)4 Cursor (android.database.Cursor)4 MenuBuilder (android.support.v7.view.menu.MenuBuilder)4 SpannableString (android.text.SpannableString)4 AdapterContextMenuInfo (android.widget.AdapterView.AdapterContextMenuInfo)4 EditText (android.widget.EditText)4 ImageView (android.widget.ImageView)4 ListView (android.widget.ListView)4