简体   繁体   中英

How can we remove default Android Device colour

I am going on with the scroll action in my Android Device if i scroll any thing in the device after it reaches the end point in top and bottom if even we scroll it shows some colours for different device eg:(samsung it shows blue light).

Here i attached a screenshot below:

在此处输入图片说明

How can we remove it or if no chance can we change the color

Usually we will use ScrollView,Listview etc to scroll the view should go on with XML or progrmatically.

<ScrollView 
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:fillViewport="true"
    android:overScrollMode="never"
    android:scrollingCache="false"
    android:fadingEdge="none" > 

TRIED

android:cacheColorHint="#00000000"

android:scrollingCache="false"

list.setCacheColorHint(Color.TRANSPARENT);

android:fadingEdge="none"

listView.setVerticalFadingEdgeEnabled(false);

android:overScrollMode="never"

But no change can any one help me to fix this issue.

this effect is named overscroll

listView.setOverscrollFooter(new ColorDrawable(Color.RED));
listView.setOverscrollHeader(new ColorDrawable(Color.RED));

be awared that some devices ignores this params, example here

I don't know how to completely disable the overflow in the ScrollView, but I have come across a library that you can use so as to change your overflow color.

LINK: https://github.com/AndroidAlliance/EdgeEffectOverride

Here is the solution which helped me to solve

Custom overscroll glow/edge color for ListView?

for the user Menny

referred link: http://evendanan.net/android/branding/2013/12/09/branding-edge-effect/

Hope this help's you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM