title: Android, Designing custom Button (gradient and animation)
body: <p>In my application I want to apply gradient to Button. I have written following code and the result is perfect.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;layer-list 
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape&gt;
              &lt;padding 
                  android:left="1dp"
                  android:top="1dp"
                  android:right="1dp"
                  android:bottom="1dp"/&gt;
  
              &lt;solid 
              android:color="#FF000000"/&gt;
  
          &lt;/shape&gt;
      &lt;/item&gt;
  
      &lt;item&gt;
          &lt;shape&gt;
              &lt;padding 
              android:left="5dp"
              android:top="5dp"
              android:right="5dp"
              android:bottom="5dp"/&gt;
  
              &lt;gradient 
              android:startColor="#FFB0B0B0"
              android:centerColor="#FFFFFFFF"
              android:endColor="#FFB0B0B0"
              android:angle="315"/&gt;
  
              &lt;corners 
              android:radius="3dp"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
  
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>But my problem is, when I click on this button I have no effect or animation such as original one. Therefor, I want to add some effect on it that when user clicks on it the button becomes bigger and when released the key, the button comeback to its situation.</p>
  
  <p>guide me please. thanks :)</p>