JoanZapata / android-iconify

Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,...
http://joanzapata.com/android-iconify
Other
3.93k stars 526 forks source link

IconDrawable shows X in lollipop and blank in android 4... (within the actionbar) #88

Closed rothschild86 closed 9 years ago

rothschild86 commented 9 years ago

Any thoughts what might cause this? I know ttf is loaded because I'm not getting any exceptions... Thank you :)

JoanZapata commented 9 years ago

Can you provide a screenshot of the problem please? Are you sure you're not setting the typeface programmatically or in another way, through a library for example?

rothschild86 commented 9 years ago

2015-06-30_130020

that's supposed to be fa-filter there...

code used:


Utils.addMenuItem(activity, menu, 102, R.string.Filter, MenuItem.SHOW_AS_ACTION_ALWAYS, IconValue.fa_filter);

    public static void addMenuItem(Context context, Menu menu, int order, int textRes, int showAs, IconValue iconCode){

        MenuItem item = menu.add(0, textRes, order, textRes);

        item.setIcon(new IconDrawable(context, iconCode).actionBarSize());

        MenuItemCompat.setShowAsAction(item, showAs);   
    }
rothschild86 commented 9 years ago

not using any typefaces anywhere else

JoanZapata commented 9 years ago

Fixed by v2.

rothschild86 commented 9 years ago

cool