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); } }
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_NEVER);
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">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With