change theme ? or just background

You need to apply one of available themes to your application. You can do it AndroidManifest.xml, just use android:theme attribute:

android:theme="@android :style/Theme.Holo" if you want dark theme orandroid:theme="@android :style/Theme.Holo.Light" if you want light theme.

If you use put this app in one of your <activity> tags, only corresponding activity will be styled, if you put it in <application> tag, style will be applied to the whole application.

Of course, you can define your own style in styles.xml:

<style name="AppTheme" parent="android:Theme.Light"> <item name="android:windowBackground">@drawable/bg_window</item> <item name="android:windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style>

Here's the example of AndroidManifest.xml:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".Activity1" android:theme="@style/AppTheme2" /> <activity android:name=".Activity2" />

In this example, AppTheme2 will be applied only to Activity1, while AppTheme will be applied to all other activities.

你可能感兴趣的:(android)