On Mon, Oct 3, 2011 at 5:38 AM, Isaac Ng <[email protected]> wrote: > I using a listView, but I set its background color to white, due to > application requirements.
You should probably do this by setting Theme.Light for the activity in the manifest, so everything adjusts in tandem, including your text color: http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme > I've a xml file that has the following layout with listview and > buttons here. I try to change front by using 'android:color' attribute > to "@color/black", but still show blank screen. There is no android:color attribute on ListView or Button. > Here is the XML file > ---- > <ListView android:id="@+id/chapters_list" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_weight="1.0" > android:textColor="@color/black" /> There is no android:textColor attribute on ListView. If for some reason you do not want to use Theme.Light, you will need to supply an appropriate row layout to your Adapter that has the desired text color set on the TextView widget inside that row. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

