如何更改ListView
以覆盖页眉和页脚?
我尝试过设置属性,但这没效果。
android:overScrollHeader="@drawable/drawable_file"
android:overScrollFooter="@drawable/drawable_file"
答案 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);
}
由于