I want to add a theme change function to the application. I have several Activities and I need the background to change throughout the application. Problem: the background changes remarkably through - just a different color, but I want the picture to act as the background. As far as I understand (recently I started to learn) this is implemented in style.xml via windowbackground> @ drawable / filename. The weight of the file-picture is only 300-450 kb, the name with a small letter, the resolution is 720 * 480. I tried various options - nothing happens. Tell me, please, what is the error.

  • Is it in Android? Please indicate - Saidolim
  • Code? Where is the code? How to tell what the error is if there is no code. - Vladyslav Matviienko

1 answer 1

In the topic Theme.NoTitlteBar changed how

<style name="Background" parent="@android:style/Theme.NoTitleBar"> <item name="android:windowBackground">@android:color/black</item> </style> 

in the manifest file, specify

 <application android:theme="@style/Background"/>