Wednesday, November 24, 2010

Changing ListView seperator and selection color - Android

1) How to change listview separator color and selection color?

use the following in your listview

android:id="@+id/homeListView"
android:drawSelectorOnTop="false"
android:listSelector="@drawable/rollover_singleline"
android:divider="#ffebb5"
android:dividerHeight="1px"
android:paddingTop="50dip"
android:layout_width="fill_parent"
android:layout_height="fill_parent">




Thanks.

No comments:

Post a Comment