如何更改ListView滚动?

时间:2014-10-15 17:35:03

标签: android android-listview expandablelistview

如何更改ListView以覆盖页眉和页脚?

我尝试过设置属性,但这没效果。

android:overScrollHeader="@drawable/drawable_file"
android:overScrollFooter="@drawable/drawable_file"

1 个答案:

答案 0 :(得分:0)

最后解决了在创建listView之后调用它的问题

public static void brandGlowEffect(Context context) {       
        //glow
        int glowDrawableId = context.getResources().getIdentifier("overscroll_glow", "drawable", "android");
        Drawable androidGlow = context.getResources().getDrawable(glowDrawableId);
        androidGlow.setColorFilter(Color.parseColor("#3fade6"), PorterDuff.Mode.SRC_IN);
        //edge
        int edgeDrawableId = context.getResources().getIdentifier("overscroll_edge", "drawable", "android");
        Drawable androidEdge = context.getResources().getDrawable(edgeDrawableId);
        androidEdge.setColorFilter(Color.parseColor("#3fade6"), PorterDuff.Mode.SRC_IN);
  }

由于