Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen I set the theme, it doesn't update on device
    primarykey
    data
    text
    <p>What I want is for my app to have that "zoom-in" animation used by, e.g., Google Maps, so when you start the application you get an instant title screen animation. I did this successfully in one title, but changing an existing app to do this has proven...complicated...and so I'm wondering what magic I managed in the previous app didn't make it into the new app.</p> <p>I have a theme defined like this:</p> <pre><code>&lt;style name="startstyle" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen"&gt; &lt;item name="android:background"&gt;@drawable/recharge&lt;/item&gt; &lt;/style&gt; </code></pre> <p>Where there's a recharge.png in res/drawable. </p> <p>In a file "theme.xml" in res/values, and I reference it like this:</p> <pre><code>&lt;activity android:name=".MainActivity" android:theme="@style/startstyle" &lt;!-- more ... --&gt; &lt;/activity&gt; </code></pre> <p>When I was working on another app, I had to uninstall and reinstall the app to get changes to the theme to actually ever show up. Then once it showed up, it always worked.</p> <p>But the new application never does the zoom, though on the very first run on a particular device it DOES show the "recharge.png" image. But then later (even after killing the app) it doesn't show it again; it just cuts to a black screen before showing the title screen. OK, more testing shows that if I kill the app, wait 10 seconds, and then run again, I can get recharge.png to show again, but it never does the zoom animation.</p> <p>It doesn't seem to always update when I change the theme, either, so I have to suspect that there's a cache that needs to be cleared.</p> <p>My app is NDK-based, and the app itself does all its rendering in OpenGL, but it seems like the "zoom" animation should be happening before my app even gets full initialized. Am I wrong? Am I killing it by starving the CPU, for instance? Thoughts?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload