Refer to a color programmatically in Android

TextView textView = new TextView(context); textView.setTextColor(context.getResources().getColor(R.color.red));
Refer to a color in code programmatically in Android.

#color #context #android

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.