-
Notifications
You must be signed in to change notification settings - Fork 6
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
反馈个问题 #3
Comments
你的意思是设置了setIncludeEdge(false),第六个item右边还是出现了边距? |
设置了setIncludeEdge(false),第五个item右边出现了边距,这个可以直接拿这个项目试出来(你那边试试看会不会)。实际上我真正去用的时候,只有两个item的时候(设置列=2),也出现了这个问题 |
好像不会呀,设置了wrap_content,demo那五个item的宽度并没有比屏幕宽度长,所以才会有空隙。如果一行的item超过了屏幕宽度,就是铺满自适应的。同理你的项目设置列为2的时候,是不是这两个item不足以铺满屏幕宽度?如果你要铺满屏幕设置match_parent就好了。 |
看不到照片,demo可以实践刚才我说的几点 |
将RecyclerView宽度设置wrap_content,item内容也设置wrap_content,总之就是,宽度不要占满屏幕,设置列为5,总数据条数是6,这时候最右边的item就会多出一点点间距
The text was updated successfully, but these errors were encountered: