disable listview overscroll on samsung android

后端 未结 4 938
野性不改
野性不改 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

    0 讨论(0)
  • 2021-02-09 08:46

    Try this setOverScrollMode (int mode).. check this link out: http://developer.android.com/reference/android/widget/AbsListView.html#setOverScrollMode(int)

    0 讨论(0)
  • 2021-02-09 08:58

    New RecyclerView can be used instead of ListView to tackle the problem.

    0 讨论(0)
  • 2021-02-09 09:01

    Not my solution but check out https://gist.github.com/DHuckaby/3919939. Works for me. Stupid Samsung

    0 讨论(0)
提交回复
热议问题