I am trying to apply a textColor to a layout as opposed to a textView. Is this possible or is textView the only method that can apply a text color via xml?
Asked
Active
Viewed 113 times
0
-
can you please explain more what you actually want? – Saifuddin Sarker Nov 07 '12 at 08:33
-
he wants to apply the text color to the opposed color of the given screen. – meh Nov 07 '12 at 08:35
-
A layout does not have text so the question makes no sense! What exactly are you trying to do? – Simon Nov 07 '12 at 08:38
-
Im trying to generically apply a text color to a screen as opposed to specifying text color in in each individual textView. – Calgar99 Nov 07 '12 at 08:41
-
then you should apply a style to all of your textviews – meh Nov 07 '12 at 08:42
-
I think you want to change the textcolor of your whole app instead of the default textcolor. Look at this link : http://stackoverflow.com/questions/9593133/change-default-text-color – Edward Sullen Nov 07 '12 at 09:02
2 Answers
1
here is link of setting textcolor by coding
How to set the text color of TextView in code?
and in xml youu can do it in a text view.
android:textColor="#000000"
hope this will help

Community
- 1
- 1

Saifuddin Sarker
- 853
- 3
- 8
- 26
0
Implement custom styles and set style on your UI elements you want to have another textcolor on. You may also be able to make some custom themes that you can set for your layout, but I'm not sure if or how that works. But you can certainly get some ideas from here Android developer styles and themes.

Robert
- 4,602
- 4
- 22
- 33