Пример #1
0
 public PopupMenu(Context context, View anchor) {
   mContext = context;
   mMenu = new MenuBuilder(context);
   mMenu.setCallback(this);
   mAnchor = anchor;
   mPopup = new PopupMenuHelper(context, mMenu, mAnchor);
   mPopup.setCallback(this);
 }
Пример #2
0
 public void show() {
   mPopup.show();
 }
Пример #3
0
 public void dismiss() {
   mPopup.dismiss();
 }