Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Unable to remove the color at the top and bottom

enter image description hereI have added a scrollView and if deploy on the android tablet,it has some problems. But it works fine on cellphone.

When users move to the top or bottom of the whole page,it will automatically show the blue shadow which indicates users reaching the bottom of the page. I want to remove those indicator since it affects the UI.

Is there any way to remove or set in the XML?

I have tried different parameter to set on the scrollview but it doesn't work.

Please help.

like image 962
Thomas Lee Avatar asked Feb 28 '12 07:02

Thomas Lee


2 Answers

fadingEdge is deprecated. Use this in your ScrollView:

android:overScrollMode="never"

like image 81
Plegge Avatar answered Oct 03 '22 09:10

Plegge


Add this extra line to your ScrollView definition:

android:overScrollMode="never"   

or add this to your code:

findViewById(R.id.sobreScrollView).setOverScrollMode(ScrollView.OVER_SCROLL_NEV‌​ER); 
like image 45
kyogs Avatar answered Oct 03 '22 07:10

kyogs