一.PopWindow构成3要素
1.contentView window的内容
2.width window的宽度
3.height window的高度
其构造方法:
public PopupWindow(View contentView, int width, int height, boolean focusable);
...
PopupWindow的很多用法网上比较多,我就不做过多解释了,只说下可能会遇到的问题,以及解决办法: 1、PopupWindow中的listview无响应 这个主要是因为show写在了setFocusable前面 2、点击PopupWindow外面区域,不会自动dismiss ...
分类:
移动开发 时间:
2014-12-09 12:01:24
阅读次数:
175