各 ListView 行が必要で、境界線があり、描画可能なフォルダー内に LayerList があり、名前は「border.xml」です。
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<padding
android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp" />
<solid android:color="@color/azulViewPager" />
</shape>
</item>
<item>
<shape android:shape="rectangle" >
<solid android:color="@color/grisFondoCuadros" />
</shape>
</item>
</layer-list>
スタイルのように、この LayerList を FrameLayout に適用したいと考えています。私は次の方法でそれを行います。styles.xml という名前のファイルで:
<!-- Styles Shadows -->
<style name="row_border" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/border</item>
</style>
リストビュー行の xml では、次のようになります。
<FrameLayout
style="@style/row_border"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
私の問題は、ListView の外観と動作は完璧ですが、スタイルが適用されないことです。多くのオプションをテストしましたが、成功しませんでした
どんな助けにも感謝します
よろしく