We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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整个在recyclerview的下面,而不是是一个item,怎样做到呢?
The text was updated successfully, but these errors were encountered:
你描述的问题有俩种情况,不知道你具体指哪种,我就这俩种情况做一个简单的思路: 1、如果是固定在底部的那种,不跟随列表滑动而上下滚动 :这种比较简单,用relativeLayout布局固定在底部即可,和recyclerView无关
2、如果是跟着列表,如果列表数据一页没到,底部需要出现一条类似提示的,当达到一页以上的时候这个数据跟随最后(我们的项目中就出现过这种) : 这种情况需要计算,计算当前页最后一条有效item是否已经达到屏幕底部,如果已经达到那最后添加的footer就直接跟上,如果没有达到,就计算下最后一条有效item距离屏幕底部还有多少,footer有多高,计算得到的值设置footer的paddingtop实现
Sorry, something went wrong.
No branches or pull requests
让footer整个在recyclerview的下面,而不是是一个item,怎样做到呢?
The text was updated successfully, but these errors were encountered: