मुझे सूची दृश्य देखने की ज़रूरत है और यह पता नहीं लगा सकता कि यह स्क्रॉल करते समय काले पृष्ठभूमि में क्यों जाता है .. मेरे पास लिनियरलाउट के अंदर ListView है और उस लेआउट में पृष्ठभूमि को छवि पर सेट किया गया है।स्क्रॉल करते समय पृष्ठभूमि के साथ एंड्रॉइड लिस्ट व्यू स्टाइल इश्यू
यह है कि मैं क्या ListView के लिए है:
<style name="MyListView" parent="@android:style/Widget.ListView">
<item name="android:listSelector">@drawable/selector_list_item</item>
</style>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:state_focused="true"
android:drawable="@drawable/shape_list_item_normal" />
<item android:state_pressed="true"
android:drawable="@drawable/shape_list_item_pressed" />
<item android:state_focused="true"
android:drawable="@drawable/shape_list_item_normal" />
</selector>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:startColor="#80ffffff" android:endColor="#80eff3ef" android:angle="45" />
<padding android:left="5dip" android:right="5dip" android:top="7dip" android:bottom="7dip"/>
</shape>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:startColor="#80808080" android:endColor="#80eff3ef" android:angle="45" />
<padding android:left="5dip" android:right="5dip" android:top="7dip" android:bottom="7dip"/>
</shape>
जब मैं MyListView शैली लागू मैं बहुत हो रहा दिखाई नहीं देता। जब मैं आइटम पर क्लिक करता हूं - हाँ, मैं ढाल देखता हूं। जब ListView स्थिर - मैं पृष्ठभूमि देखता हूं क्योंकि यह मूल लेआउट से होना चाहिए। जब मैं स्क्रॉल करता हूं - मुझे काला पृष्ठभूमि दिखाई देती है, यह माता-पिता की पृष्ठभूमि मिटा रही है। और मैं अगर मुझे पता था कि कुछ और के साथ इसे कैसे सेट उस के साथ ठीक होगा ..