disable listview overscroll on samsung android

后端 未结 4 937
野性不改
野性不改 2021-02-09 08:17

I need to totally disable overscroll in my listviews so I can implement my own overscroll functionality.

Seems to be simple enough when looking at the core listview cla

4条回答
  •  执念已碎
    2021-02-09 08:41

    How about below code:

    @Override
    protected float getTopFadingEdgeStrength() {
        return 0.0f;
    }
    
    @Override
    protected float getBottomFadingEdgeStrength() {
        return 0.0f;
    }
    

    Answer inspired from @cdhabecker Android ScrollView fading edge

提交回复
热议问题