由网友(春日写真馆)分享简介:我添加了一个简单的按钮,我的布局,我已经删除的文本并设置图像的透明度为背景。但遗憾的是我的按钮阴影效果,我无法将其删除。我将AP preciate,如果您有任何与它的经验帮助我。谢谢!I have added a simple button to my layout , and I have deleted the...
我添加了一个简单的按钮,我的布局,我已经删除的文本并设置图像的透明度为背景。但遗憾的是我的按钮阴影效果,我无法将其删除。我将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 ;)
相关推荐
最新文章