public MenuPopupWindow(Activity context, OnItemClickListener mListener){
LayoutInflater inflater = LayoutInflater.from(context);
view = inflater.inflate(R.layout.layout_popup_menu, null);
this.mListener = mListener;
this.setContentView(view);
this.setWidth(RelativeLayout.LayoutParams.WRAP_CONTENT);
//设置SelectPicPopupWindow弹出窗体的高
this.setHeight(RelativeLayout.LayoutParams.WRAP_CONTENT);
//设置SelectPicPopupWindow弹出窗体可点击
this.setFocusable(false);
this.setOutsideTouchable(true);
this.setBackgroundDrawable(new ColorDrawable(0x00000000));
view.findViewById(R.id.lay_share).setOnClickListener(this);
view.findViewById(R.id.lay_inform).setOnClickListener(this);
}
MenuPopupWindow.java 文件源码
java
阅读 44
收藏 0
点赞 0
评论 0
项目:mine-android-repository
作者:
评论列表
文章目录