android - Appcelerator 钛 : Open activity without animation

标签 android titanium titanium-mobile appcelerator titanium-alloy

在钛合金中,我试图打开一个 Controller ,它是一个没有动画的窗口。

我所做的是在 /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>

我的 Controller 文件名为 login.js,所以在我的 tiapp.xml 中我定义了这样的 Activity (如此处解释:http://docs.appcelerator.com/titanium/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-activities)

<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>

但是当应用程序启动时,在启动画面之后我仍然看到 Activity 动画。我期望的是 Activity (窗口)刚刚出现。

我在这里错过了什么?

最佳答案

由于某些奇怪的原因,您无法覆盖 Titanium 中的所有 动画。

我问过这个问题 over here没有成功。

我已经尝试修补 ti 移动源代码并进行自定义构建。据我所知,禁用开场动画。关闭动画仍在某些设备上播放。

关于android - Appcelerator 钛 : Open activity without animation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26075601/

相关文章:

android - 在 Android 中搜索 ListView 项后,始终打开 ListView 的第一项(问题)

android - 使用钛在 Android 中显示底部选项卡

javascript - Appcelerator Titanium 或 JavaScript 的源代码审查和分析工具?

titanium - 桌面通知-Tide SDK

ios - iOS 上的钛合金 : When a user gets an app update, 它会删除并重置本地数据库

android - 钛安卓 : How to animate a modal window?

c# - Xamarin.Forms - HttpClient SendAsync 中未处理的异常

Android - 向 Android 的内置应用程序添加菜单项?

android - 搜索 View 从图标化 View 扩展时的事件

eclipse - Titanium Studio错误: when I run the the default mobile project with Android emulator