gpt4 book ai didi

android - 在 Android 2.3 上使用 JQuery Mobile 的 Phonegap 中缺少转换

转载 作者:行者123 更新时间:2023-11-29 21:59:53 25 4
gpt4 key购买 nike

在通过谷歌进行了一些研究之后,我没有找到解决我的问题的方法,因此出现了这个问题。我正在尝试使用 JQueryMobile(1.1.1) 构建一个 Phonegap 应用程序(2.0.0)。我看了一些教程并实现了一个相当简单的应用程序。当我在我的 HTC desire(Android 2.3) 上安装 .apk 时出现的问题是没有转换。它只是“闪烁”到新屏幕。

<div data-role="page" id="page1">
<div data-role="content" style="padding: 15px">
<a href="#page2" data-transition="slide" >link</a>
</div>
</div>

在我的 android list 文件中我添加了这个

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />

这没有帮助

我的问题是,怎么会这样?我是不是忽略了什么,或者这是不能用 android 2.3 结合 PG 和 JQM 完成的正常事情吗?

提前感谢您对我可能愚蠢的问题的任何回答;)

顺便说一句:是否有更好的解决方案来实现转换?

最佳答案

jQM 1.1.1 Docs 中所述:

By default, all transitions except fade require 3D transform support. Devices that lack 3D support will fall back to a fade transition, regardless of the transition specified. We do this to proactively exclude poorly-performing platforms like Android 2.x from advanced transitions and ensure they still have a smooth experience. Note that there are platforms such as Android 3.0 that technically support 3D transforms, but still have poor animation performance so this won't guarantee that every browser will be 100% flicker-free but we try to target this responsibly.

The fallback transition for browsers that don't support 3D transforms can be configured for each transition type, but by default we specify "fade" as the fallback. For example, this will set the fallback transition for the slideout transition to "none":

$.mobile.transitionFallbacks.slideout = "none"

关于android - 在 Android 2.3 上使用 JQuery Mobile 的 Phonegap 中缺少转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12226548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com