popupwindow 設置圖片度

直接設置pupupwindow 所引用的view的透明度便可spa

            如 get

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

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

popupMoreMenuWindow = new PopupWindow(popupMoreMenuView,引用

LinearLayout.LayoutParams.WRAP_CONTENT,layout

LinearLayout.LayoutParams.WRAP_CONTENT);view

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

相關文章
相關標籤/搜索