Example usage for android.view MenuInflater MenuInflater

List of usage examples for android.view MenuInflater MenuInflater

Introduction

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

Prototype

public MenuInflater(Context context) 

Source Link

Document

Constructs a menu inflater.

Usage

From source file:mbullington.dialogue.activity.ConversationActivity.java

/**
 * On options menu requested//from  w  w w .  j  a  v a2 s. co m
 */
@Override
public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    // inflate from xml
    MenuInflater inflater = new MenuInflater(this);
    inflater.inflate(R.menu.conversations, menu);

    return true;
}

From source file:org.tigase.mobile.accountstatus.AccountsStatusFragment.java

@Override
public void onPrepareOptionsMenu(Menu menu) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB
            && Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        MenuInflater inflater = new MenuInflater(this.getActivity().getApplicationContext());
        onCreateOptionsMenu(menu, inflater);
    }//from  w w w .jav a2 s  .c  o m

    super.onPrepareOptionsMenu(menu);
}

From source file:de.geeksfactory.opacclient.frontend.OpacActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater mi = new MenuInflater(this);
    mi.inflate(R.menu.activity_opac, menu);
    return super.onCreateOptionsMenu(menu);
}

From source file:il.ac.shenkar.todos.view.MainActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    new MenuInflater(getApplicationContext()).inflate(R.menu.application_menu, menu);
    // checks if current language is english
    return super.onCreateOptionsMenu(menu);
}

From source file:com.orangelabs.rcs.ri.extension.messaging.MessagingSessionView.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = new MenuInflater(getApplicationContext());
    inflater.inflate(R.menu.menu_mm_session, menu);
    return true;/*from  w  w  w. j  a  v a2 s .  c  om*/
}

From source file:com.almarsoft.GroundhogReader.MessageListActivity.java

@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    new MenuInflater(getApplicationContext()).inflate(R.menu.messagelist_item_menu, menu);
    menu.setHeaderTitle(getString(R.string.article_menu));
    super.onCreateContextMenu(menu, v, menuInfo);
}

From source file:com.almarsoft.GroundhogReader.MessageActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    new MenuInflater(mContext).inflate(R.menu.messagemenu, menu);

    return (super.onCreateOptionsMenu(menu));

}

From source file:com.gsma.rcs.ri.sharing.video.OutgoingVideoSharing.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = new MenuInflater(getApplicationContext());
    inflater.inflate(R.menu.menu_video_sharing, menu);
    return true;//from   w  ww  . ja  v  a  2s .com
}

From source file:com.orangelabs.rcs.ri.messaging.chat.single.SingleChatView.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = new MenuInflater(getApplicationContext());
    inflater.inflate(R.menu.menu_chat, menu);
    return true;/*from ww w.  j a  v a 2 s .  c o  m*/
}

From source file:com.gsma.rcs.ri.sharing.SharingListView.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    new MenuInflater(getApplicationContext()).inflate(R.menu.menu_historylog, menu);
    return true;/* ww  w  .j  a va2  s  . c o  m*/
}