示例#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();
 }