Skip to content
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

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

Open
19aneng opened this issue Dec 30, 2021 · 8 comments
Open

Comments

@19aneng
Copy link

19aneng commented Dec 30, 2021

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

@19aneng
Copy link
Author

19aneng commented Dec 30, 2021

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

@Meterwhite
Copy link
Owner

Meterwhite commented Dec 30, 2021 via email

@19aneng
Copy link
Author

19aneng commented Dec 30, 2021

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

@19aneng
Copy link
Author

19aneng commented Dec 30, 2021

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

@Meterwhite
Copy link
Owner

Meterwhite commented Dec 30, 2021 via email

@19aneng
Copy link
Author

19aneng commented Dec 30, 2021

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

@Meterwhite
Copy link
Owner

Meterwhite commented Dec 30, 2021 via email

@19aneng
Copy link
Author

19aneng commented Dec 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants