Skip to content Skip to sidebar Skip to footer

How Could I Disable All The Over Scroll Effect In My App?

The blue shadow over scroll effect looks really ugly in our app. Is there a way to disable all the over scroll effect? You know there are lots of ScrollViews and Lists in it... Th

Solution 1:

You can do it simply

In layout.XML

Set

android:overScrollMode="never"

In scrollview

Solution 2:

You can define a ScrollViewStyle and ListViewStyle in your Theme:

<stylename="Theme.MyTheme"parent="android:Theme.Holo"><itemname="android:listViewStyle">@style/Widget.MyTheme.ListView</item><itemname="android:scrollViewStyle">@style/Widget.MyTheme.ScrollView</item></style><stylename="Widget.MyTheme.ListView"parent="android:Widget.ListView"><itemname="android:overScrollMode">never</item></style><stylename="Widget.MyTheme.ScrollView"parent="android:Widget.ScrollView"><itemname="android:overScrollMode">never</item></style>

Then you have to define your Theme in you AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="ch.citux.example"android:versionCode="1"android:versionName="1.0"><uses-sdkandroid:targetSdkVersion="16"android:minSdkVersion="8"/><applicationandroid:hardwareAccelerated="true"android:label="@string/app_name"android:icon="@drawable/ic_launcher"android:theme="@style/Theme.MyTheme">

That's it, no more overscroll ;)

Solution 3:

I have face same problem

try this code

listView.setOverScrollMode(View.OVER_SCROLL_NEVER);

Solution 4:

You can disable all the over scroll effects by opening "res/values/styles.xml" file and adding the item line like bellow:

<stylename="AppTheme"parent="AppBaseTheme"><itemname="android:overScrollMode">never</item></style>

Solution 5:

Have you already used setOverScrollMode, with OVER_SCROLL_NEVER?

Post a Comment for "How Could I Disable All The Over Scroll Effect In My App?"