效果以及需求
查看原图可点击放大,可两指放大等
1.PopupWindow的简单使用
PopupWindow最基本的三个条件是一定要设置的:View contentView,int width, int height
showAtLocation 窗口展示的位置
setOutsideTouchable(true)点击外面关闭PopupWindow,一定要在showAtLocation之前调用
View contentView = LayoutInflater.from(this).inflate(R.layout.pop_pic_photo, null);
popupWindow = new PopupWindow(contentView, ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT);
popupWindow.setOutsideTouchable(true);
popupWindow.showAtLocation(layout, Gravity.BOTTOM, 0, 0);
TextView load = contentView.findViewById(R