android: removing listview selector -



android: removing listview selector -

i have changed lsitview selector color transparent. when click on list item, color of text changes dark grey.. there anyway handle issue. don't want color changed upon item click ..

first problem solution accomplish can create custom listview...

suppose listview xml file like...

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <listview android:layout_height="wrap_content" android:id="@android:id/list" android:layout_width="match_parent"></listview> </linearlayout>

and custom view xml file...

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/black" > <textview android:text="textview" android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textcolor="@android:color/white" android:textsize="30dip"> </textview> </linearlayout>

and run application...than click on item no color show ...

get total code problem click here.

android listview colors selector

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -