Android 图像按钮淡入淡出图像
我有一个图像按钮,我想淡出一张图像并淡入另一张图像。我不希望图像的背景淡出(我不希望整个按钮都是透明的)
到目前为止,我找到的唯一解决方案是堆叠两个按钮,然后一个淡入,另一个淡出。有什么方法可以只用一个按钮来做到这一点吗?
理想情况下,我不必堆叠图像/图像按钮来实现这一点。任何想法将不胜感激...
谢谢!
I have one image button and I would like to fade out one image and fade in the other. I don't want the background of the image to fade out(i dont ever want the entire button to be transparent)
The only solution I have found so far is to have two buttons stacked and fade one in while the other fades out. Is there any way that I can do this with just one button??
Ideally I won't have to stack images/image buttons to make this happen. Any ideas would be greatly appreciated...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以......我从来没有想出办法做到这一点。我最终只是堆叠了两个 imageButtons 并淡出其中一个,而另一个淡入。
So.... I never figured out a way to do this. I ended up just stacking two imageButtons and fading out one while the other fades in.