Question

How can I define a custom theme for my activity? I was trying to do it by android manifest, But I had no Idea about how am I going to do that! PLease write down the code

Était-ce utile?

La solution

There are two ways to create a custom theme style in android:
1. To an individual View, by adding the style attribute to a View element in the XML for your layout.
2. Or, to an entire Activity or application, by adding the android:theme attribute to the <activity> or <application> element in the Android manifest.

Please refer this

To set a theme for all the activities of your application, open the AndroidManifest.xml file and edit the tag to include the android:theme attribute with the style name. For example:

<application android:theme="@style/CustomTheme">
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top