请教这个弹出的黑色的按钮框是怎么实现的呢?

解决方案 »

  1.   


    大侠,请问您有相关的代码demo么?
      

  2.   

    OVERLAY?多加了一层?或者加了一张透明的图?
      

  3.   

    贴一段代码 LayoutInflater mLayoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    final ViewGroup menuView = (ViewGroup) mLayoutInflater.inflate(你的自资源文件id, null, true);
    mPopupWindow  = new PopupWindow(menuView, LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT, true);
    mPopupWindow.setBackgroundDrawable(new BitmapDrawable()); 
         mPopupWindow.setOutsideTouchable(true);
         mPopupWindow.setFocusable(true);点击title的按钮触发mPopupWindow.showAsDropDown(View view);