Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy - Open activity without animation

$
0
0

In an Alloy I'm trying to open a controller which is a Window without animation.

What I've done is define a new style inside /platform/android/res/values/activity_no_animation.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.NoAnimation" parent="android:Theme">
        <item name="android:windowAnimationStyle">@null</item>
    </style>
</resources>
my controller filename is login.js, so in my tiapp.xml I've defined the activity like this (as explained here here)
<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <application android:theme="@style/Theme.NoActionBar">
            <activity url="login.js" android:theme="@style/Theme.NoAnimation" />
        </application>
        <!-- Need to specify at least API level 11 for Titanium SDK 3.2.x and prior -->
        <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
    </manifest>
</android>
but when the app starts, after the splash screen I still see the activity animation. What I would expect is for the activity (window) to just show up.

what am I missing here?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>