Create a custom layout, define your color in this layout.
Like this:
<? xml version="1.0" encoding=" utf-8 "? > <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tv" android:textColor="@color/white" // Here You define your desired color android:layout_width="fill_parent" android:gravity="center" android:layout_height="fill_parent"/>
Use this layout in your adapter, for example:
ArrayAdapter<String> adapter = new ArrayAdapter<String>( this, R.layout.custom_textview, info); lv.setAdapter(adapter);
This way you do not need to use a custom adapter.
source share