如何控制footer和header的高度
idealgn opened this issue · 3 comments
idealgn commented
footer和header的高度与中间item的高度不一致,怎么去控制,求大神解答下
dev3932 commented
footer和header的宽高是单独控制的
View headerView = LayoutInflater.from(getContext()).inflate(R.layout.xxxx, rev, false);
R.layout.xxxx 是header布局文件,在里面自己修改
rev是你需要填充数据的RecyclerView
xxxxWrapper.addHeaderView(headerView);
idealgn commented
谢谢
发自网易邮箱大师
在2017年10月11日 15:18,2573703932 写道: footer和header的宽高是单独控制的
View headerView = LayoutInflater.from(getContext()).inflate(R.layout.xxxx, rev, false);
R.layout.xxxx 是header布局文件,在里面自己修改
rev是你需要填充数据的RecyclerView
xxxxWrapper.addHeaderView(headerView);
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/hongyangAndroid/baseAdapter","title":"hongyangAndroid/baseAdapter","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/hongyangAndroid/baseAdapter"}},"updates":{"snippets":[{"icon":"PERSON","message":"@2573703932 in #106: footer和header的宽高是单独控制的\r\nView headerView = LayoutInflater.from(getContext()).inflate(R.layout.xxxx, rev, false);\r\nR.layout.xxxx 是header布局文件,在里面自己修改\r\nrev是你需要填充数据的RecyclerView\r\nxxxxWrapper.addHeaderView(headerView);"}],"action":{"name":"View Issue","url":"#106 (comment)"}}}
w1570187062 commented
这个方法不管用 @dev3932