Tuesday, January 3, 2012

Apply Android Holo Theme

To apply Theme for Application (or individual activity), you can add android:theme property under <application> (or <activity>) in AndroidManifest.xml. Android 3.0 (API Level 11) or higher, the platform provide a new holographic theme. To apply this newer theme, modify AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.exercise.AndroidDualFragment"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="11" />

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo" >
<activity
android:name=".AndroidDualFragmentActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

Theme.Holo
Theme.Holo.Light
Theme.Holo.Light.DialogWhenLarge

No comments: