它不能这样做。在这里你会找到一个解释:
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/i5a3uNN8jpg
public static void brandGlowEffect(Context context, int brandColor) {
//glow
int glowDrawableId = context.getResources().getIdentifier("overscroll_glow", "drawable", "android");
Drawable androidGlow = context.getResources().getDrawable(glowDrawableId);
androidGlow.setColorFilter(brandColor, PorterDuff.Mode.SRC_IN);
//edge
int edgeDrawableId = context.getResources().getIdentifier("overscroll_edge", "drawable", "android");
Drawable androidEdge = context.getResources().getDrawable(edgeDrawableId);
androidEdge.setColorFilter(brandColor, PorterDuff.Mode.SRC_IN);
}
你必须在OnCreate中或OnCreateView调用此方法。
向我们展示您的代码.. – 2013-04-24 05:20:15
您知道我说得清楚吗?如果你知道,你可以给我更详细的给你我的代码?我真的不知道你需要哪个代码。 – 2013-04-24 06:17:30