popupwindow 设置图片度

原创
2013/12/27 11:16
阅读数 92

直接设置pupupwindow 所引用的view的透明度即可

            如

                       LayoutInflater layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);

popupMoreMenuView = layoutInflater.inflate(R.layout.test);

popupMoreMenuWindow = new PopupWindow(popupMoreMenuView,

LinearLayout.LayoutParams.WRAP_CONTENT,

LinearLayout.LayoutParams.WRAP_CONTENT);

popupMoreMenuView.setAlpha(0.9f);//90%透明度


展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部