Materialdrawer: [Question] how to change default profileIcon colors

Created on 27 Jul 2016  ·  4Comments  ·  Source: mikepenz/MaterialDrawer

Hi,

First of all - than you for such a great tool!!!

Please help! How can I change default colors of profile (avatar) placeholder image?
Thanks.

question

Most helpful comment

All 4 comments

Where is the drawable for this placeholder anyway?

Thank you a lot!!!

Sample code for tweaking the placeholder colors:

DrawerImageLoader.init(new AbstractDrawerImageLoader() {
    @Override
    public Drawable placeholder(Context ctx, String tag) {
        return new IconicsDrawable(ctx, MaterialDrawerFont.Icon.mdf_person).colorRes(android.R.color.white).backgroundColorRes(R.color.primary).sizeDp(56).paddingDp(16);
    }
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranjal-joshi picture pranjal-joshi  ·  3Comments

jd-alexander picture jd-alexander  ·  4Comments

Meeks91 picture Meeks91  ·  3Comments

sonh picture sonh  ·  3Comments

DasserBasyouni picture DasserBasyouni  ·  4Comments