ConsecutiveScroller icon indicating copy to clipboard operation
ConsecutiveScroller copied to clipboard

想在ConsecutiveScrollerLayout中设置marginTop为负数的形式,但是space设置负数没有效果请问有没有办法解决

Open 18640243061 opened this issue 2 years ago • 8 comments

18640243061 avatar Mar 07 '22 03:03 18640243061

你是想设置负值,让两个view重叠吗?ConsecutiveScrollerLayout不支持这种效果。

donkingliang avatar Mar 07 '22 06:03 donkingliang

好的,找到了别的解决办法,我只好进行尽可能少的布局嵌套

------------------ 原始邮件 ------------------ 发件人: "donkingliang/ConsecutiveScroller" @.>; 发送时间: 2022年3月7日(星期一) 下午2:20 @.>; @.@.>; 主题: Re: [donkingliang/ConsecutiveScroller] 想在ConsecutiveScrollerLayout中设置marginTop为负数的形式,但是space设置负数没有效果请问有没有办法解决 (Issue #248)

你是想设置负值,让两个view重叠吗?ConsecutiveScrollerLayout不支持这种效果。

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

18640243061 avatar Mar 07 '22 07:03 18640243061

好的,找到了别的解决办法,我只好进行尽可能少的布局嵌套 ------------------ 原始邮件 ------------------ 发件人: "donkingliang/ConsecutiveScroller" @.>; 发送时间: 2022年3月7日(星期一) 下午2:20 @.>; @.@.>; 主题: Re: [donkingliang/ConsecutiveScroller] 想在ConsecutiveScrollerLayout中设置marginTop为负数的形式,但是space设置负数没有效果请问有没有办法解决 (Issue #248) 你是想设置负值,让两个view重叠吗?ConsecutiveScrollerLayout不支持这种效果。 — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

请问需要view重叠 你是怎么解决的?

fuusy avatar Apr 27 '22 13:04 fuusy

你是想实现啥样的需求

18640243061 avatar Apr 28 '22 02:04 18640243061

image 类似这张图,首页有banner和下面tablayout+viewpager,tablayout+viewpager的背景是圆角且覆盖了banner的下边一部分

fuusy avatar Apr 28 '22 02:04 fuusy

有什么解决方法可以分享一下吗

MrUncleX avatar Jan 03 '23 09:01 MrUncleX

我的办法可能没有什么参考性,就是在布局内嵌套其他布局,比如在ConsecutiveScrollerLayout的子ViewGroup里设置margintop

------------------ 原始邮件 ------------------ 发件人: "donkingliang/ConsecutiveScroller" @.>; 发送时间: 2023年1月3日(星期二) 下午5:55 @.>; @.@.>; 主题: Re: [donkingliang/ConsecutiveScroller] 想在ConsecutiveScrollerLayout中设置marginTop为负数的形式,但是space设置负数没有效果请问有没有办法解决 (Issue #248)

有什么解决方法可以分享一下吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

18640243061 avatar Jan 03 '23 10:01 18640243061

这个是怎么实现的呢,要让view重叠,你的子ViewGroup里设置margintop我不是很理解

jiasijiedajidali avatar Sep 11 '23 12:09 jiasijiedajidali