admin管理员组文章数量:1410712
I've started an Adroid project with Phonegap following this guide: .0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
There is an unpleasant effect when scrolling longer pages: a highlighting at the end of scrolling (covering header and footer) and a small bounce (which makes fixed position header and footer also bounce).
Is there a way to prevent both - bouncing and highlight - on Android using this implementation of Phonegap? I've seen solutions only for embedded WebView.
I've started an Adroid project with Phonegap following this guide: http://docs.phonegap./en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
There is an unpleasant effect when scrolling longer pages: a highlighting at the end of scrolling (covering header and footer) and a small bounce (which makes fixed position header and footer also bounce).
Is there a way to prevent both - bouncing and highlight - on Android using this implementation of Phonegap? I've seen solutions only for embedded WebView.
Share asked Aug 14, 2012 at 13:32 user1203684user1203684 1022 silver badges6 bronze badges1 Answer
Reset to default 8Well you can add the following lines:
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD) {
this.appView.setOverScrollMode(appView.OVER_SCROLL_NEVER);
}
to the onCreate method of your Java class that extends from DroidGap it should get rid of the highlight at least and maybe the bounce too.
本文标签: javascriptPhonegapAndroid disable bounce and highlight effect on scrollingStack Overflow
版权声明:本文标题:javascript - Phonegap + Android: disable bounce and highlight effect on scrolling - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744885306a2630449.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论