SDRangeSlider icon indicating copy to clipboard operation
SDRangeSlider copied to clipboard

大佬你好,我想要两个按钮重叠的效果,代码怎么改

Open 19aneng opened this issue 3 years ago • 8 comments

大佬你好,我想要两个按钮重叠的效果,代码怎么改

19aneng avatar Dec 30 '21 02:12 19aneng

您现在两个按钮的间距为0,没办法重叠

19aneng avatar Dec 30 '21 02:12 19aneng

你好,我现在有点忙.可以先试试阅读源码,或者使用其他的控件. 因为两个按钮重叠有个谁上谁下的问题,下面的就按不到了.这个在设计上就有问题.


发件人: 19aneng @.> 发送时间: 2021年12月30日 10:46 收件人: Meterwhite/SDRangeSlider @.> 抄送: Subscribed @.***> 主题: Re: [Meterwhite/SDRangeSlider] 大佬你好,我想要两个按钮重叠的效果,代码怎么改 (Issue #2)

您现在两个按钮的间距为0,没办法重叠

― Reply to this email directly, view it on GitHubhttps://github.com/Meterwhite/SDRangeSlider/issues/2#issuecomment-1002849080, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIPCJ5XDC3D4HAPVKR3Q23UTPBX5ANCNFSM5K66T66A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Meterwhite avatar Dec 30 '21 02:12 Meterwhite

谢谢您的回复,我先改一下您的源码后再回复.

19aneng avatar Dec 30 '21 03:12 19aneng

只要偏移个5像素就行了,有点效果,保持右边按钮在上面,左边按钮在下面

19aneng avatar Dec 30 '21 03:12 19aneng

试试能不能使用负数.


发件人: 19aneng @.> 发送时间: 2021年12月30日 11:01 收件人: Meterwhite/SDRangeSlider @.> 抄送: Meterwhite @.>; Comment @.> 主题: Re: [Meterwhite/SDRangeSlider] 大佬你好,我想要两个按钮重叠的效果,代码怎么改 (Issue #2)

只要偏移个5像素就行了,有点效果,保持右边按钮在上面,左边按钮在下面

― Reply to this email directly, view it on GitHubhttps://github.com/Meterwhite/SDRangeSlider/issues/2#issuecomment-1002851587, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIPCJ74ISGQIQFLBHMLJKTUTPDOZANCNFSM5K66T66A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

Meterwhite avatar Dec 30 '21 03:12 Meterwhite

哈哈哈,你的计算环环相扣....我要全部吃透才能改...

19aneng avatar Dec 30 '21 03:12 19aneng

有种最简单的思路,图片超出控件一些,就可以有这种效果.


发件人: 19aneng @.> 发送时间: 2021年12月30日 11:03 收件人: Meterwhite/SDRangeSlider @.> 抄送: Meterwhite @.>; Comment @.> 主题: Re: [Meterwhite/SDRangeSlider] 大佬你好,我想要两个按钮重叠的效果,代码怎么改 (Issue #2)

哈哈哈,你的计算环环相扣....我要全部吃透才能改...

― Reply to this email directly, view it on GitHubhttps://github.com/Meterwhite/SDRangeSlider/issues/2#issuecomment-1002852092, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIPCJY6H3H7LUOLFJV7XNLUTPDYPANCNFSM5K66T66A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

Meterwhite avatar Dec 30 '21 03:12 Meterwhite

搞定了,弄了个imageView放图片... 改在rightButton上面

19aneng avatar Dec 30 '21 03:12 19aneng