linear gradient 的问题
16lz
2021-01-25
在使用渐变作为背景的时候会出现抖动不清楚的问题如
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#3A3C39"
android:endColor="#181818"
android:angle="270"
/>
<corners android:radius="0dp" />
</shape>
android:background="@drawable/shape_background_grey"
如果出现上述问题如要
listView.getBackground().setDither(true);
更多相关文章
- Android(安卓)MaterialButton的一些问题
- listView背景设置
- 窗口透明样式示例
- RecyclerView 滚动条 长宽设置
- SeekBar的使用
- Android(安卓)第一次启动全屏时出现短暂的状态栏
- Android(安卓)自定义SeekBar 实现分段显示不同背景颜色
- listView常用属性设置
- Android图片代码换色,背景换色