ShareThis

Sunday, October 30, 2011

How to Use Android textColor - with Examples!


Example:-
Input
Output
[sourcecode language="css"]
<TextView android:text="@+id/TextView01"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#23cf34" />
[/sourcecode]
textviewtextcolor
[sourcecode language="css"]
<EditText android:text="@+id/EditText01"
android:id="@+id/EditText01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#23cf34" />
[/sourcecode]
edittexttextcolor
[sourcecode language="css"]
<Button android:text="@+id/Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#23cf34" />
[/sourcecode]
buttontextcolor
Here the Hexadecimal value of the Color we used is "#23cf34"
android:textColor="#23cf34"

0 comments:

Post a Comment