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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -