title: Why doesn't Android's shadowRadius work with a 0 value in XML?
body: <p>In an Android app that's targeting Marshmallow, I want to apply a non-blurry shadow to the text of a button. With a shadowRadius of 1 or higher, I see the shadow:</p>
  
  <p><a href="https://i.stack.imgur.com/hmyzJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hmyzJ.png" alt="one"></a></p>
  
  <p>But if I try to make the shadowRadius anything between 0 and 0.99, nothing shows up:</p>
  
  <p><a href="https://i.stack.imgur.com/TuYKm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TuYKm.png" alt="less than one"></a></p>
  
  <p>I'm just trying to achieve a no-blur shadow like you can do with the <code>text-shadow</code> property in CSS:</p>
  
  <p><a href="https://i.stack.imgur.com/TuYKm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dlwZl.png" alt="css"></a></p>
  
  <p>Here is the associated XML that I have set up for my button style.</p>
  
  <pre><code>    &lt;style name="ButtonStyle" parent="@style/Widget.AppCompat.Button"&gt;
      .
      .
      .
      &lt;item name="android:shadowColor"&gt;@android:color/holo_green_light&lt;/item&gt;
      &lt;item name="android:shadowDx"&gt;2&lt;/item&gt;
      &lt;item name="android:shadowDy"&gt;7&lt;/item&gt;
      &lt;item name="android:shadowRadius"&gt;0.99&lt;/item&gt;
      .
      .
      .
  &lt;/style&gt;
  </code></pre>
  
  <p>The only thing I could think of that was unique to my style was that I set <code>stateListAnimator</code> to null, but even without that I have this problem. I see a lot of example code online mentioning that you can make the shadowRadius something small like 0.01 but I'm not seeing any shadow once I make it smaller than 1. Did something change in the Android platform recently?</p>