SoFunction
Updated on 2025-04-11

How to remove the shadows that appear when Android slides to the top and bottom

android removes shadows that slide to top and bottom

<ListView
android:
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:divider="@color/line_color"
android:dividerHeight="0.5dp"
android:fadingEdge="none"
android:overScrollMode="never">
</ListView>

Explain the various attributes used by listview

Remove the default colored background when dragging:

android:cacheColorHint="#00000000" 

Remove black shadows on the edges when ListView slides to the top and bottom:

android:fadingEdge="none" 

Remove the shaded color area that appears when sliding down to the bottom and pulling up

android:overScrollMode="never" 

The above is the method of removing shadows when Android slides to the top and bottom that I introduce to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!