Home > Mobile >  How to customize the view inside to set aside texttview color again
How to customize the view inside to set aside texttview color again

Time:12-01

I have the following color. XML (shorten)




I from defines a view inherit TextView

My XML using the custom view
Set the textColor status_orange


I'm onConfigurationChanged listen if have change I want to

SetTextColor (getResources (). GetColor (R.c olor. Status_orange))

But I have a lot to use the custom view, how can I know which one I am using status_orange or status_red?
What method can to R.c olor. XXXX, this is XXX I hope I the name of the XML used textColor,
  • Related