当前位置:首页 > Windows程序 > 正文

46、PopWindow工具类

2021-03-28 Windows程序

String strHead = listData.get(position).photo; String strName = listData.get(position).name; String strPhone = listData.get(position).phone; popWindow = new StudentPopWindow(mActivity, strHead, strName, strPhone); popWindow.setHeight(ViewGroup.LayoutParams.MATCH_PARENT); popWindow.setWidth(ViewGroup.LayoutParams.MATCH_PARENT); //显示窗口 //设置layout在PopupWindow中显示的位置 popWindow.showAtLocation(view, Gravity.CENTER, 0, 0);

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/69232.html