首页 > 系统 > Android > 正文

解决Android的button按钮默认自带阴影效果

2019-11-06 10:03:49
字体:
来源:转载
供稿:网友
<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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表