Exercise: Apply Theme in AndroidManifest.xml

Android provide some predefine themes in the base package, you can change the theme by adding a code in the file AndroidManifest.xml.

Inside Application tag to take effect on whole Application.


package="com.exercise.AndroidTheme"
android:versionCode="1"
android:versionName="1.0">
android:theme="@android:style/Theme.Black"
>
android:label="@string/app_name">









Or,
Inside Activity tag to take effect on individual Activity.


package="com.exercise.AndroidTheme"
android:versionCode="1"
android:versionName="1.0">
>
android:label="@string/app_name"
android:theme="@android:style/Theme.Light"
>










@android:style/Theme.Black



@android:style/Theme.Light



@android:style/Theme.Translucent



Post a Comment

Previous Post Next Post

Contact Form