通過反射去除listView 滑動到上下頂端的陰影

    try {
                    Method method = AbsListView.class.getDeclaredMethod("setOverScrollMode", int.class);
                    method.setAccessible(true);
                    method.invoke(this, 2);//View.OVER_SCROLL_NEVER
                } catch (Exception e) {
                    e.printStackTrace();
                }


如果android:fadingEdge="none"  達不到你想要的效果 

 那麼請試試上面的方法。。在你自定義的listview中。·。·


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章