Search This Blog

22 April 2010

Themes

Going back to our non-transparent example, let's make it theme-oriented...

in styles.xml, add:
    <style name="HelloTheme" parent="android:Theme">
        <item name="android:windowBackground">@color/cornsilk</item>
    </style>
   
In main.xml, remove:
android:background="@color/cornsilk"

In AndroidManifest.xml, change:
<activity android:name=".MyActivity">
to
<activity android:name=".MyActivity" android:theme="@style/HelloTheme">

Redeploy (mvn clean install) and it should... well.. look the same ;)

No comments:

Post a Comment