1
示出伪影我有一个这样的布局:的ImageButton在透明图像
<LinearLayout android:background="mybackgroundimage.jpg">
...
<LinearLayout android:weight=1> <!-- another layout to group the
images below and give it weight=1 -->
<ImageButton android:background="item1bg.png" .../>
<ImageButton android:background="item2bg.png" .../>
</LinearLayout>
</LinearLayout>
的图像item1bg和item2bg从完整图像到完全透明的褪色。 所需的效果是将图像混合到背景。
我已验证图像,当你用任何东西打开它们时,它们看起来都OK。但是,在按钮中应用时,它们会在混合部分显示伪像:一些绿色的垂直透明线条。
我试过setAlpha(0),但是文物仍然存在。
关于为什么发生这种情况和/或如何解决它的任何想法?
谢谢! Llappall