如何去除按钮阴影 (android) [英] How to remove button shadow (android)
本文介绍了如何去除按钮阴影 (android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想去除按钮的阴影,使其看起来更平坦.
I want to remove the shadow from the button to make it seem more flat.
我现在有这个:
但我想要这个:
推荐答案
另一种选择是添加
style="?android:attr/borderlessButtonStyle"
到您的 Button xml,如此处所述http://developer.android.com/guide/topics/ui/controls/button.html
to your Button xml as documented here http://developer.android.com/guide/topics/ui/controls/button.html
一个例子是
<Button
android:id="@+id/button_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send"
android:onClick="sendMessage"
style="?android:attr/borderlessButtonStyle" />
这篇关于如何去除按钮阴影 (android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文