去掉Button的默认背景
16lz
2021-01-23
Button的自带背景实在是太丑了,当然可以直接用图片替换,但是如果要去除的话可以用下列这种方式:
添加一个style
android:layout_width="wrap_content"
style="?android:attr/borderlessButtonStyle"
android:layout_height="wrap_content"
android:text="这是测试按钮"/>
这是区别
更多相关文章
- Android中拍照、图片、录音、视频和音频功能的方法和代码
- Button或者ImageButton的背景设为透明或者半透明
- Android之获取加载图片宽高问题(getIntrinsicWidth与getwidth的区
- Android HorizontalScrollView 水平滑动 在listview上面动态添加
- android实现标题栏、状态栏图标文字颜色及背景动态变化
- 自定义类似于listView中Item背景
- Android使用JPEG实现图片压缩上传
- Android 保存图片到相册无法显示的问题
- Android获取SD卡上图片和视频文件及其缩略图