title: How to put shadow on button and change shadow Blur in android?
body: <p>I am trying to create a view with custom shadow blur and shadow X and Y values . </p>
  
  <p>Using the below code , we can put shadow on car view but how can we change blur and X and Y position .</p>
  
  <pre><code>app:cardElevation="2dp"
  </code></pre>
  
  <p><em>This is x and y and blur amount</em></p>
  
  <p><a href="https://i.stack.imgur.com/mviAo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mviAo.png" alt="enter image description here"></a></p>
  
  <p>Button should look like :</p>
  
  <p><a href="https://i.stack.imgur.com/hCCtl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hCCtl.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0Dh6j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Dh6j.png" alt="enter image description here"></a></p>