除去在Android按钮阴影效果 [英] Remove shadow effect on android button

查看:146
本文介绍了除去在Android按钮阴影效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个简单的按钮,我的布局,我已经删除的文本并设置图像的透明度为背景。但遗憾的是我的按钮阴影效果,我无法将其删除。我将AP preciate,如果您有任何与它的经验帮助我。
谢谢!

I have added a simple button to my layout , and I have deleted the text and set an image with transparency as its background. but unfortunately there is a drop shadow effect on my button and I can't remove it. I'll appreciate if you have any experience with it help me.
Thanks!

推荐答案

,而不是你有按钮,你的XML,应该是这样的:

Your xml , instead of the button that you have, should be like this:

    <ImageButton android:src="@drawable/yourimagename"
     android:id="@+id/button1"
     android:layout_width = "wrap_content"
     android:layout_height = "wrap_content"
     android:background="@null"
     />

如果您有任何问题,只是让我知道;)

If you have any problems just let me know ;)

这篇关于除去在Android按钮阴影效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆