<Button
android:id="@+id/bt_login"
android:layout_width="match_parent"
android:layout_height="@dimen/et_user_height"
android:layout_marginLeft="@dimen/et_user_left_margin"
android:layout_marginRight="@dimen/et_user_left_margin"
android:layout_marginTop="@dimen/bt_margin_top"
android:background="@color/bt_login_color"
android:text="登 录"
android:textColor="@color/white"
style="?android:attr/borderlessButtonStyle"
android:textSize="@dimen/title_size" />
其中style="?android:attr/borderlessButtonStyle"
设置该属性就可以去掉自带的阴影
具体解释看Google官网
http://developer.android.com/guide/topics/ui/controls/button.html
本文介绍如何在Android应用中为按钮去除默认的阴影效果,通过设置style属性为borderlessButtonStyle来实现这一目标。
5289

被折叠的 条评论
为什么被折叠?



