去掉Button的默认背景
16lz
2022-03-09
Button的自带背景实在是太丑了,当然可以直接用图片替换,但是如果要去除的话可以用下列这种方式:
添加一个style
android:layout_width="wrap_content"
style="?android:attr/borderlessButtonStyle"
android:layout_height="wrap_content"
android:text="这是测试按钮"/>
这是区别
更多相关文章
- Android(安卓)多点触摸 multi-touch
- mix
- Android之Dialog
- Android(安卓)之 ActionBar返回按钮
- ERROR: No installed build tools found. Install the Android(
- Android(安卓)DEX 方法超过64K限制
- Android中自定义带图标和清空内容按钮的EditText控件
- Android(安卓)代码修改按钮上的图片
- 重点核心☆☆☆☆☆按钮点击事件的四种类型