开发者

ListView problem while clicking

This is my ListView xml file and i have different xml for row(every item of listview),Nothing to do with that.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:开发者_如何学Golayout_width="fill_parent" 
    android:layout_height="fill_parent" >

    <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content"    
        android:listSelector="#ffffff"  
        android:clickable="false"
        android:dividerHeight="1dip"
        style="@style/ProgressStyle"
        android:cacheColorHint="#00000000"

     />

</LinearLayout>

When i am clicking this listview it is becoming white as because it is set android:listSelector="#ffffff". But when i m removing this from xml file then when i am clicking then the item on which i click it is showing some color(in my case yellow in emulator and red in device).It should not show because android:clickable="false is set. Anyone having any idea?


it is byDefault set, if you dont want any color then you can set a transparent color in xml

android:listSelector="#00000000"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜