Android style is not taken into account


I have a problem while creating styles in android:

When I use


in Button for instance, that's working fine, but if I create a styles.xml like:

<?xml version="1.0" encoding="utf-8"?>
    <style name="smalltext" parent="@style/Text">
        <item name="android:textSize">10sp</item>
        <item name="android:textColor">#FFF</item>
        <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>

and replace in Button:


nothing is taken into account.

Would you have any idea of what could be wrong ?

thanks a lot,

Best Solution

Keep in mind that styles will not be applied in the layout view in Eclipse. You'll have to deploy the application to a device (or the emulator) to see the changes.