0

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?

Calgar99
  • 1,670
  • 5
  • 26
  • 42

2 Answers2

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