Search in sources :

Example 51 with MenuInflater

use of android.view.MenuInflater in project standup-timer by jwood.

the class TeamDetails method onCreateOptionsMenu.

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

Example 52 with MenuInflater

use of android.view.MenuInflater in project standup-timer by jwood.

the class TeamList method onCreateContextMenu.

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

Example 53 with MenuInflater

use of android.view.MenuInflater in project openkit-android by OpenKit.

the class OKLeaderboardsActivity method onCreateOptionsMenu.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    int menuID;
    if (OKManager.INSTANCE.isAchievementsEnabled()) {
        menuID = getResources().getIdentifier("io_openkit_leaderboards", "menu", getPackageName());
    } else {
        menuID = getResources().getIdentifier("io_openkit_menu_leaderboards_no_achievements", "menu", getPackageName());
    }
    inflater.inflate(menuID, menu);
    //inflater.inflate(R.menu.io_openkit_leaderboards, menu);
    return true;
}
Also used : MenuInflater(android.view.MenuInflater)

Example 54 with MenuInflater

use of android.view.MenuInflater in project chuck by jgilfelt.

the class TransactionActivity method onCreateOptionsMenu.

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

Example 55 with MenuInflater

use of android.view.MenuInflater in project Android-Developers-Samples by johnjohndoe.

the class MainActivity method onCreateOptionsMenu.

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

Aggregations

MenuInflater (android.view.MenuInflater)304 MenuItem (android.view.MenuItem)32 View (android.view.View)16 Intent (android.content.Intent)12 AdapterView (android.widget.AdapterView)12 SearchView (android.support.v7.widget.SearchView)11 PopupMenu (android.widget.PopupMenu)10 TextView (android.widget.TextView)10 Menu (android.view.Menu)9 IconicsDrawable (com.mikepenz.iconics.IconicsDrawable)9 ListView (android.widget.ListView)8 SearchManager (android.app.SearchManager)6 Point (android.graphics.Point)5 AdapterContextMenuInfo (android.widget.AdapterView.AdapterContextMenuInfo)5 ImageView (android.widget.ImageView)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