Search code examples
androidtextviewviewflipper

Setting text color in a flipper


I am using a flipper where in there are like 50 text views..I want to set a color to all of them..how do I do that in 1 shot?


Solution

  • You should be able to set a style or theme for the whole activity like

    <style name="CustomTheme">    
        <item name="android:textColor">#ff0000</item>
    </style>
    

    And you can set this style to your activity like

    <activity android:theme="@style/CustomTheme">
    

    The docs from google will give moe idea and examples http://developer.android.com/guide/topics/ui/themes.html