滚动PhoneGap的机器人 [英] scroll in phonegap android

查看:92
本文介绍了滚动PhoneGap的机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的PhoneGap的Andr​​oid应用程序。我想选择多个选项和这些选项应该可以看见一排,每当我刷的选项栏。我也想浏览的刷卡多个页面。我怎样才能做到这一点?谁能帮我举个例子?

I am developing an android app in phonegap. I want to select multiple options and these options should be visible in a row whenever I swipe the option bar. I also want to navigate multiple pages on swipe. How can I do this? can anyone help me with an example?

推荐答案

在您的情况将是有益的IScroll HTTP:/ /cubiq.org/iscroll-4

In your situation will be useful IScroll http://cubiq.org/iscroll-4.

HTML

<div id="wrapper">
<ul>
    <li></li>
    ...
    ...
</ul>
</div>

<script type="text/javascript">
    var myScroll = new iScroll('wrapper');
</script>

CSS

#wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: /*your height*/;
    overflow: auto;
}

除外包装将是静态的。

All except "wrapper" will be static.

这篇关于滚动PhoneGap的机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆