首页 > 学院 > 开发设计 > 正文

去掉Button的默认背景

2019-11-09 14:00:56
字体:
来源:转载
供稿:网友

Button的自带背景实在是太丑了,当然可以直接用图片替换,但是如果要去除的话可以用下列这种方式: 添加一个style

<Button android:layout_width="wrap_content" style="?android:attr/borderlessButtonStyle" android:layout_height="wrap_content" android:text="这是测试按钮"/>

这是区别 这里写图片描述 这里写图片描述


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