tags:

views:

33

answers:

1

Hi,

Can you please tell me how can I set the RBG value of android.R.styleable.Theme_textColorDim for my android application?

Thank you.

I have added this styles.xml file in my project:

<?xml version="1.0" encoding="utf-8"?>
resources>
<style name="ApplicationStyle" parent="android:Theme">
  <item name="android:textColorDim">#00ff00</item>
</style>
</resources>

But when I compile it, I get this error:

res/values/styles.xml:19: error: Error: No resource found that matches the given name: attr 'android:textColorDim'.

So how can I set the textColorDim?

A: 

You can create a theme that overrides one of the textColorXX attributes in android.R.attr, and then apply that theme to your activity or even the entire application.

These links may prove to be helpful:

Roman Nurik