-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何控制footer和header的高度 #106
Comments
footer和header的宽高是单独控制的 |
谢谢
发自网易邮箱大师
在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)"}}}
|
这个方法不管用 @dev3932 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
footer和header的高度与中间item的高度不一致,怎么去控制,求大神解答下
The text was updated successfully, but these errors were encountered: