How to change the color of text?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to change the color of text?

Postby discover_dileep » Mon Nov 10, 2008 3:37 pm

HI,
How to change the color of the text in the layout file in sdk 1.0.?my mean text view color.
please help me.

Thnaks
dilu
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Top

Postby Malefico » Mon Nov 10, 2008 5:55 pm

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <TextView android:id="@+id/TextView01" android:textColor="#FFFFFF"></TextView>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


Where FFFFFF is the black rgb code.

You can also define your colours in a serapate xml and reuse it in all your xml layout

cheers
Malefico
Developer
Developer
 
Posts: 30
Joined: Fri Oct 24, 2008 3:32 pm

Postby discover_dileep » Tue Nov 11, 2008 2:40 pm

thanks a lot
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby KanedaSyndrome » Mon Jan 05, 2009 11:52 pm

small correction, #000000 is the black code, the #FFFFFF is pure white.
KanedaSyndrome
Developer
Developer
 
Posts: 41
Joined: Tue Nov 11, 2008 3:32 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests