[android-developers] Re: text color of a ListView
The approach suggested by Jeremy should work but android:textColor should be in a TextView.../TextView AFAIK. Or when you populate your list and access your TextViews, programmatically change the color by calling setTextColor(int). If it still doesn't work, try different colors, maybe accidentally you tried the default color. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: text color of a ListView
you can define your own text syle On 08/18/2011 02:40 AM, bob wrote: This didn't work. On Aug 17, 2:45 pm, Jeremy Dagornjeremy.dag...@gmail.com wrote: Hi, In your xml layout file : ListView ... android:textColor=#FF /ListView Best, On Aug 17, 11:29 am, bobb...@coolgroups.com wrote: Anyone know an easy way to change the text color of a ListView on Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: text color of a ListView
Hi, In your xml layout file : ListView ... android:textColor=#FF /ListView Best, On Aug 17, 11:29 am, bob b...@coolgroups.com wrote: Anyone know an easy way to change the text color of a ListView on Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: text color of a ListView
This didn't work. On Aug 17, 2:45 pm, Jeremy Dagorn jeremy.dag...@gmail.com wrote: Hi, In your xml layout file : ListView ... android:textColor=#FF /ListView Best, On Aug 17, 11:29 am, bob b...@coolgroups.com wrote: Anyone know an easy way to change the text color of a ListView on Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: text color of a ListView
How are you populating your list view? Do you have a layout resource for the rows, or are you creating the rows in code? In either case, set the color there. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: text color
What part of colour setting are you having difficulty with? James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: text color
Select the textview, then click on the properties tab, scroll down to text coloryou have to create a colors.xml file in your resources and put all your color definitions in it. Regards,Sy On 8 Jun 2011 18:07, James Ots james...@gmail.com wrote: What part of colour setting are you having difficulty with? James -- You received this message because you are subscribed to the Google Groups Android Developers... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Text color in fast scroll SectionIndexer box
Use this property for your ListView android:cacheColorHint=# Thanks and Regards, Kumar Bibek On Apr 10, 6:55 pm, EPecorari emanuele.pecor...@gmail.com wrote: Hi, I have a ListView with the fast scroll enabled. The background of the listview is white and the text is black. The box indicating the letter of the section is being scrolled at the moment is in black. Is it possible to customize that colore and turn to white? If yes, how can I do that? Thanks Emanuele -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: text color won't change for TextView.setEnabled(false)
If I remove the line of android:textColor, it backs to normal. But I think the current scheme is still having a big problem for developer. For example, I created a TextView object with TextView android:id=@+id/txtResults android:layout_width=fill_parent android:layout_height=fill_parent / Then, I set the text using tv.setText(Html.fromHtml(font color=\#FFC000\This is a/font font color=\#FF\test./font)); You can see that the colors of TextView won't be changed to dim color. It does not have this problem in m5. Is there any API for me to call for graying a TextView? On Aug 23, 10:01 am, samlu [EMAIL PROTECTED] wrote: This is the TextView object defined in layout file. TextView android:id=@+id/txtResults android:layout_width=fill_parent android:layout_height=fill_parent android:background=#A0 android:textColor=#FF / In addition, no theme specified for activity in Manifest.xml. I only use the default theme. Sam On Aug 23, 5:29 am, Jeff Hamilton [EMAIL PROTECTED] wrote: How did you define the TextView in your layout file? Are you using one of the standard textAppearance values? -Jeff On Fri, Aug 22, 2008 at 2:17 AM, samlu [EMAIL PROTECTED] wrote: When I called setEnabled(false) for a TextView object on m5-rc15, the text color will be changed to gray (or dim). After switching to v0.9, it seems that all view object won't change color when I call setEnabled(false). Does anyone know how to fix this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---