<shape>
Androidドローアブルxmlの要素の長方形で効果的に2ストロークに相当するものを達成しようとしています。濃い緑色の外側の線と薄緑色の内側の線で、すべての中央がグラデーションで塗りつぶされています。私のコードは現在次のようになっています。
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="3px" android:color="#477135" />
</shape>
</item>
<item >
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="#81c557" android:endColor="#539942"
android:angle="270" />
<stroke android:width="1px" android:color="#a8d78a" />
</shape>
</item>
android:top="3px" android:bottom="3px" を 2 番目の item 要素に適用しようとしましたが、右と左の属性を追加すると、全体がレンダリングされません。これはすべてListView内で行われることに注意してください