I want to change the background of my App's Activity.
Now that is available in black I want to change that with some images or themes.
I want to change the background of my App's Activity.
Now that is available in black I want to change that with some images or themes.
Further to @Ryan:
In the layout for your activities, you can also add the attribute
to set a background color. You can also introduce a custom resource
/res/values/colors.xml
in which you can declare custom colors. One such file might look like:You then introduce these in XML as follows:
Add a
android:theme="@style/Theme.AppTheme
attribute to your application tag in the manifest file with the theme you want to use. This will prevent the default "black" background to be drawn if you only set a background in your Activity/Fragment layout file.You declared it in a style.xml file.
AndroidManifest.xml file
Add the background attribute to your window's xml layout. Example:
Personally, I would try to do it in xml like Sk9 suggests, but programmatically at runtime you can do
or
Source: http://developer.android.com/reference/android/view/View.html