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 badges
Add a ment  | 

1 Answer 1

Reset to default 8

Well 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