Hi Prerna

1. Create your own adapter
2. use Html.fromHtml in getView method of adapter class

On Sat, Jun 26, 2010 at 7:58 AM, prerna <[email protected]> wrote:
> Hi, I have a similar problem and was wondering if anyone got the
> solution to this.
>
> Thanks, Prerna
>
> On May 12, 6:14 am, ena <[email protected]> wrote:
>> In my project im Multiple choice list....in this all text view in
>> white color...i want to change text color...
>>
>> in program im use simple xml main.xml
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <RelativeLayout
>>         xmlns:android="http://schemas.android.com/apk/res/android";
>>          android:layout_width="fill_parent"
>>         android:layout_height="fill_parent" android:background="#ffff00">
>> <ListView android:id="@+id/android:list"
>>                 android:layout_marginTop="2px" 
>> android:layout_marginLeft="2px"
>>                 android:layout_marginRight="2px" 
>> android:layout_width="fill_parent"
>>                 android:layout_height="wrap_content" 
>> android:layout_weight="1"
>>                 android:background="@drawable/shape_1"
>>                 android:listSelector="@drawable/shape_3"
>>
>>                 android:textColor="#ffff00"
>>                 android:layout_marginBottom="44px" />
>> </RelativeLayout>
>>
>> im ListActivity class
>>
>>  setContentView(R.layout.main);
>>      setListAdapter(new ArrayAdapter<String>(this,
>>                 android.R.layout.simple_list_item_multiple_choice,
>> GENRES));
>> listView =getListView();
>>       listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
>>
>> in how to change text color and text size...plz help me...
>>
>> --
>> 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 
>> athttp://groups.google.com/group/android-developers?hl=en
>
> --
> 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

-- 
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

Reply via email to