I was using the support vector drawables added in Support Library 23.2 along with AppCompat. I was using vector drawables both with app:srcCompat
and inside a <
To use vectors as compoundDrawables ( ex. for textview ) without using
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
which leads to documented high memory usage, just inflate the vector using
Drawable drawable = AppCompatResources.getDrawable( getContext(), R.drawable.vector_resID );
if( drawable != null ) drawable.setBounds( 0, 0, iconSize, iconSize );
TextViewCompat.setCompoundDrawablesRelative( textView, null, null, drawable, null);
This is the way the navDrawer works