Tabnine Logo
PopupMenu.setOnDismissListener
Code IndexAdd Tabnine to your IDE (free)

How to use
setOnDismissListener
method
in
androidx.appcompat.widget.PopupMenu

Best Java code snippets using androidx.appcompat.widget.PopupMenu.setOnDismissListener (Showing top 2 results out of 315)

origin: mikepenz/MaterialDrawer

  @Override
  public void onClick(View view) {
    PopupMenu popup = new PopupMenu(view.getContext(), view);
    MenuInflater inflater = popup.getMenuInflater();
    inflater.inflate(mMenu, popup.getMenu());
    popup.setOnMenuItemClickListener(mOnMenuItemClickListener);
    popup.setOnDismissListener(mOnDismissListener);
    popup.show();
  }
});
origin: 8enet/AppOpsX

private void showPopMenu(int groupPosition, View view) {
 PopupMenu popupMenu = new PopupMenu(this, view);
 getMenuInflater().inflate(R.menu.group_item_menu, popupMenu.getMenu());
 popupMenu.setOnDismissListener(this);
 popupMenu.setOnMenuItemClickListener(this);
 popupMenu.show();
}
androidx.appcompat.widgetPopupMenusetOnDismissListener

Popular methods of PopupMenu

  • <init>
  • setOnMenuItemClickListener
  • show
  • getMenu
  • inflate
  • getMenuInflater

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now