You can try this (it's a hack, I know):

    int glowDrawableId = 
context.getResources().getIdentifier("overscroll_glow", "drawable", 
"android");
    Drawable androidGlow = 
context.getResources().getDrawable(glowDrawableId);
    androidGlow.setColorFilter(brandColor, PorterDuff.Mode.MULTIPLY);

I took advantage of the fact that the glow effect is actually a shared 
Drawable and applied a filter on it: 
http://evendanan.net/android/branding/2013/12/09/branding-edge-effect/

On Friday, January 25, 2013 3:17:03 PM UTC-5, Nathan wrote:
>
> Thanks, that's a pretty good explanation of what I see. You get the 
> Android Style Guru title for today. 
>
> I'll consider this a "system color" and devote resources elsewhere. 
>
> Nathan
>
> On Friday, January 25, 2013 12:05:58 PM UTC-8, Kostya Vasilyev wrote:
>>
>> If you look here:
>>
>>
>> https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/EdgeEffect.java
>>
>> you'll see references (in the constructor) to R.drawable.overscroll_glow 
>> and R.drawable.overscroll_edge, without a theme indirection.
>>
>> Those are included under <android 
>> sdk>/platforms/platform-17/data/res/drawable-xhdpi (the "-17" and "-xhdpi" 
>> can vary of course), and they are holo blue.
>>
>> Now, is that what you actually see in the UI? It would appear so, e.g, 
>> lines 620 and 625 below:
>>
>>
>> https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/AbsListView.java
>>
>> "You see that Mr. Anderson?... That is the color of inevitability..." 
>> (lame, I know)
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to