title: Why does adding an ImageSpan to a Snackbar's action text work on Android devices SDK level 26 but not on SDK level 25?
body: <p>I want to show a <code>Snackbar</code> and use an image instead of text for the action.</p>
  <p>I use the following code:</p>
  <pre><code>    val imageSpan = ImageSpan(this, R.drawable.star)
      val builder = SpannableStringBuilder(&quot; &quot;)
      builder.setSpan(
          imageSpan,
          0,
          1,
          SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE
      )
      Snackbar.make(findViewById(R.id.container), &quot;Hello Snackbar&quot;, Snackbar.LENGTH_INDEFINITE)
          .setAction(builder) {}.show()
  </code></pre>
  <p><code>drawable_star</code> being a vector graphic asset, but the same happens with a <code>png</code>.</p>
  <p>On an Android device lvl 26 and above this yields:</p>
  <p><a href="https://i.stack.imgur.com/PzDd3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PzDd3.png" alt="pic1" /></a></p>
  <p>as expected, whereas on device lvl 25 the image is not visible:</p>
  <p><a href="https://i.stack.imgur.com/Ibdgj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ibdgj.png" alt="pic2" /></a></p>
  <p>Does someone know the reason for this and if there a workaround?</p>
  <p>PS: You can check out my test project here: <a href="https://github.com/fmweigl/SpannableTest" rel="nofollow noreferrer">https://github.com/fmweigl/SpannableTest</a></p>