初识ListPopupWindow

惯例,先上图:

初识ListPopupWindow_第1张图片
点击加载更多.png
初识ListPopupWindow_第2张图片
弹出ListPopupWindow.png

activity_main.xml中就一个可点击的View

初识ListPopupWindow_第3张图片
主布局.png

然后在新建一个list的item布局(可图文)

初识ListPopupWindow_第4张图片
item的布局.png

新建一个Adapter类,继承BaseAdapter

初识ListPopupWindow_第5张图片
QQ截图20170109225659.png
初识ListPopupWindow_第6张图片
Adapter中给控件设置值.png

最后在MainActivity中设置ListPopupWindow的属性及绑定adapter

初识ListPopupWindow_第7张图片
listPopupWindow的属性设置
初识ListPopupWindow_第8张图片
生成模拟数据.png
初识ListPopupWindow_第9张图片
点击item和btnShow触发显示.png

logger:


日志内容.png

完咯

你可能感兴趣的:(初识ListPopupWindow)