Remove shadow from top and bottom of ListView in android?

前端 未结 6 1414
盖世英雄少女心
盖世英雄少女心 2020-12-29 17:59

I have created a custom listView with the row as follows:

 

        
相关标签:
6条回答
  • 2020-12-29 18:43

    android:fadingEdgeLength was not worked for me I used and worked well with android:overScrollMode="never"

    Add android:overScrollMode="never" to your ScrollView

    0 讨论(0)
  • 2020-12-29 18:50

    I'm assuming you're talking about the fading edges. To disable them:

    android:fadingEdge="none"
    

    or

    listView.setVerticalFadingEdgeEnabled(false);
    

    UPDATE

    As Pim Reijersen pointed out in the comments, android:fadingEdge is deprecated and will be ignored as of API level 14. Please use:

    android:fadingEdgeLength="0dp"
    
    0 讨论(0)
  • 2020-12-29 18:54

    It's work for me

    android:fadeScrollbars="false"
    android:fadingEdge="none"
    android:fadingEdgeLength="0dp"
    android:cacheColorHint="#00000000"
    android:overScrollMode="never"
    
    0 讨论(0)
  • 2020-12-29 18:54

    add this into XML:

    android:fadingEdge="none" or android:fadingEdgeLength="0dp"
    
    0 讨论(0)
  • 2020-12-29 19:02

    Use this in your XML ScrollView:

    android:overScrollMode="never"
    

    You can set to "always", "never", or "ifContentScrolls".

    0 讨论(0)
  • 2020-12-29 19:05

    try below code snippet

    listView.setVerticalFadingEdgeEnabled(false);
    
    0 讨论(0)
提交回复
热议问题