我正在尝试制作像这样的listview项目
我用谷歌搜索但没有帮助......到目前为止,我已经实现了这个目标
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item android:bottom="2dp" android:top="1dp">
<shape>
<solid android:angle="90" android:color="#000000" />
</shape>
</item>
<item android:top="4dp">
<shape>
<gradient android:angle="90" android:endColor="#010a16" android:startColor="#010a16" />
</shape>
</item>
</layer-list>
</item>
</layer-list>
编辑:
图像效果在图像中几乎看不到,但在手机中看起来稍微好一些
但它没有显示与上面完全相同的结果... anyhelp?