title: How to set Drawable from xml vector inside ImageSpan
body: <p>How to set <code>Drawable</code> from xml vector inside an <code>ImageSpan</code>?
  I use this two methods below. But my icon didn't show. When I use png from drawable resource icon shows up. Any idea? </p>
  
  <pre><code>private void setupEmptyListInfoBox() {
          Drawable icon = loadVectorFromResources(getActivity(), R.drawable.ic_add_circle_24dp);
          ImageSpan is = new ImageSpan(icon, DynamicDrawableSpan.ALIGN_BASELINE);
          String info = getString(R.string.empty_weight_list_info);
          int iconPosition = info.indexOf("|");
  
          SpannableString text = new SpannableString(info);
          text.setSpan(is, iconPosition, iconPosition + 1, 0);
  
          mEmptyListInfo.setText(text);
      }
  
  public static Drawable loadVectorFromResources(Context context, int resId) {
      Drawable drawable;
      if (android.os.Build.VERSION.SDK_INT &lt; Build.VERSION_CODES.LOLLIPOP) {
          drawable = VectorDrawableCompat.create(context.getResources(), resId, context.getTheme());
      } else {
          drawable = context.getResources().getDrawable(resId, context.getTheme());
      }
      return drawable;
  }
  </code></pre>