popupWindow自适应大小
2020-12-07 09:05
标签:style c ext color width get // popupWindow自适应大小 popupWindow = new PopupWindow(view, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); // 设置PopupWindow的大小(宽度和高度) // 高度和宽度为屏幕的比例 popupWindow.setWidth(display.getWidth() * 9 / 10); popupWindow.setHeight(display.getHeight() * 9 / 10); popupWindow.setBackgroundDrawable(getResources().getDrawable( R.drawable.pop_bg)); popupWindow自适应大小,搜素材,soscw.com popupWindow自适应大小 标签:style c ext color width get 原文地址:http://www.cnblogs.com/zmc/p/3725086.html