它不能這樣做。在這裏你會找到一個解釋:
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