मैं सूचीदृश्य कि वस्तुओं पर एक yellowtint दिखाया जा रहा था जब मैं उन्हें छुआ है। मैं अलग तरह से किया है कि सूचीदृश्य एक्सएमएल में पृष्ठभूमि छवि बदलने के है, और अब यह अब मुझे yellowtintएंड्रॉयड सूचीदृश्य नहीं रह गया है शृंखला को हाइलाइट करने onclick
यहाँ है कोड
सूची दृश्य एक्सएमएल दिखाएगा, यह सिर्फ एक पृष्ठभूमि के साथ एक TextView है छवि:
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="24sp"
android:textColor="#000000"
android:background="@drawable/bglistitem"
android:gravity="center_vertical|center_horizontal">
</TextView>
एक और लेआउट जहां यह
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="24sp"
android:textColor="#000000"
android:background="@drawable/bglistitem"
android:gravity="center_vertical|center_horizontal">
</TextView>
कहा जाता है और यहाँ है में जगह कोड है:
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> arg0, View arg1,int arg2, long arg3) {}
});
के रूप में आप ऊपर देख सकते हैं, मैं कभी कुछ भी है कि चयन हाइलाइटिंग के डिफ़ॉल्ट व्यवहार को बदलने के लिए कर रहा था, यह क्यों अब अलग होगा, शायद कुछ आप देखते हैं कि मैं नहीं दिखाई देता?
मैं इसे अपने अंतर्दृष्टि को पता लगा, धन्यवाद, मुझे नीचे संभावनाओं को संकीर्ण मदद की। अगर आपके पास छवि में कोई अल्फा है तो बाहर निकलता है तो पीला हाइलाइटिंग होगी। यदि आपके पास अपारदर्शी छवि है तो यह हाइलाइट नहीं करेगा – CQM