When I install a theme, it does not update on the device

I want my application to have this zoom animation used, for example, by Google Maps, so when you start the application, you get instant animation of the title screen. I did it successfully in one name, but changing the existing application for this turned out to be ... complicated ... and therefore I wonder what magic that I controlled in the previous application did not get into the new application.

I have a topic defined as follows:

<style name="startstyle" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen">
    <item name="android:background">@drawable/recharge</item>
</style>

Where is recharge.png in res / drawable.

In the file "theme.xml" in res / values ​​and I refer to it as follows:

<activity android:name=".MainActivity" 
  android:theme="@style/startstyle" <!-- more ... -->
</activity>

When I was working on another application, I had to uninstall and reinstall the application in order to get changes in the theme so that they would ever appear. Then, when he appeared, he always worked.

But the new application never does scaling, although when it is first launched on a specific device, it shows the image "recharge.png". But then (even after killing the application) it does not display it again; it just shuts off to a black screen before showing the title screen. OK, more tests show that if I kill the application, wait 10 seconds and then run it again, I can get recharge.png to show it again, but it never does the scaling animation.

It does not seem to always update when I change the subject, so I should suspect that there is a cache that needs to be cleared.

NDK, OpenGL, , "" , . ? , , ? ?

+3
1

, , , :

  • .
  • " " Android, (), .
  • Eclipse , , , . F5 , F5 ( !), . , , "F5" .
+1

Source: https://habr.com/ru/post/1794240/


All Articles