Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android scrollview remove blue light

When you scroll on Android using scrollview, it generates a blue light the direction you are scrolling in. How would I remove the blue light?

My manifest:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/sobreScrollView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:cacheColorHint="@android:color/transparent" android:scrollingCache="false"  android:fadingEdge="none" android:fadingEdgeLength="0dp" android:scrollbars="none" android:scrollbarStyle="insideOverlay"       >          <LinearLayout         android:id="@+id/contentSobre"         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:orientation="vertical" > 

Java source code:

package com.my.app.section; import android.content.Context; import android.util.AttributeSet;  import com.my.app.BaseSection;  import com.my.app.R;  public class SobreSection extends BaseSection {  public SobreSection(Context context, AttributeSet attrs, int defStyle) {     super(context, attrs, defStyle); }  public SobreSection(Context context, AttributeSet attrs) {     super(context, attrs); }  public SobreSection(Context context) {     super(context); }  @Override protected void onFinishInflate() {     // TODO Auto-generated method stub     super.onFinishInflate();      findViewById(R.id.sobreScrollView).setVerticalFadingEdgeEnabled(false);     findViewById(R.id.sobreScrollView).setVerticalScrollBarEnabled(false);  }   } 
like image 332
Nagi Avatar asked Jan 07 '13 16:01

Nagi


2 Answers

Try adding this to your ScrollView in your layout.xml:

android:overScrollMode="never"   

or add this to your code:

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

bricklore


Add this extra line to your ScrollView definition:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/sobreScrollView"     ...     android:overScrollMode="never">  
like image 41
nmw Avatar answered Oct 01 '22 07:10

nmw