- 4
- 0
- 约3.53万字
- 约 43页
- 2018-07-08 发布于湖北
- 举报
—————————————————————————————
PAGE \* MERGEFORMAT43
新闻客户端
讲师:杨光福
微博:/321chinavideo
Day4
1_自定义ListView(加载更多)-42
01_添加角布局
1_初始化和隐藏代码
在RefreshListView构造方法中调用
/**
* 添加角布局
* @param context
*/
private void initFooterView(Context context) {
View footerView = View.inflate(context, R.layout.refresh_listview_footer, null);
//隐藏代码
footerView.measure(0, 0);
int footerViewHeight = footerView.getMeasuredHeight();
footerView.setPadding(0, -footerViewHeight, 0, 0);
this.addFooterView(footerView);
}
2_布局文件refresh_listview_footer.xml
?xml version=1.0 encoding=utf-8?
原创力文档

文档评论(0)