GroupedRecyclerViewAdapter icon indicating copy to clipboard operation
GroupedRecyclerViewAdapter copied to clipboard

当为网格布局时间距问题

Open lutao2599 opened this issue 4 years ago • 3 comments

网格布局时,在根布局加margin,间距会变大,怎么修改?

lutao2599 avatar Jun 11 '21 07:06 lutao2599

间距大小取决于margin的值,如果大了,你的值改小一点。另外item设置margin时,中间的间隔会大,因为中间的间隔是两个item的边距合在一起的。

donkingliang avatar Jun 11 '21 07:06 donkingliang

嗯,不过我需要和上面的线性布局两侧的间距统一,这没什么方法修改吗

------------------ 原始邮件 ------------------ 发件人: "donkingliang/GroupedRecyclerViewAdapter" @.>; 发送时间: 2021年6月11日(星期五) 下午3:33 @.>; @.@.>; 主题: Re: [donkingliang/GroupedRecyclerViewAdapter] 当为网格布局时间距问题 (#74)

间距大小取决于margin的值,如果大了,你的值改小一点。另外item设置margin时,中间的间隔会大,因为中间的间隔是两个item的边距合在一起的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

lutao2599 avatar Jun 11 '21 07:06 lutao2599

动态计算设置左边item的做边距和右边item的右边距

donkingliang avatar Jun 11 '21 07:06 donkingliang