Solid squares with google design support library NavigationView
Opened this issue · 1 comments
johnvdvaart commented
I am using this library to convert font icons to drawables for the google design support library NavigationView
. The drawables are showing as solid squares. I do use the library elsewhere in my project and these icons show just fine. Here is a link to someone else post, who has the same issue. Is there a way to fix this?
akelix commented
It because of tintList. Check http://stackoverflow.com/questions/41136956/how-to-show-drawable-in-navigationview.
If you do not need tintList just use navigationView.setItemIconTintList(null)
Or copy source of TextDrawable and override method
@Override
public void setTintList(ColorStateList tint) {
//super.setTintList(tint);
}
@Override
public ConstantState getConstantState() {
//return super.getConstantState();
return null;
}
In this case tinit will be disabled only for this item.
Or you can try to support ColorStateList somehow in code.