0

How to get theme text color in layout xml? android:textColor="?attr/editTextColor" works for EditText color but I cannot find value for default text (TextView) color. I want to get text color to use in other elements.

Mateusz Kaflowski
  • 2,221
  • 1
  • 29
  • 35

1 Answers1

0

If You Are Using Android Studio, Then Press Ctrl+B or Command+B (For Mac) On The Resource Name You Want to go to. As You are finding colour for textView. Then press ctrl + B, it will redirect you to the default style xml of android. You Can Find Shades There. I find out default shades from the same source of course as Google has not given is every value of shades for every View. Reply me back if it really helps you. Happy Coding.

Anuj Kumar
  • 1,092
  • 1
  • 12
  • 26