title: Extending an existing element class in Android
body: <p>Lets say I want to extend an e,element calls in Android, For example the Button element.
  So I have this class:</p>
  
  <pre><code>Class MyButton extends Button{
       ...
  
  }
  </code></pre>
  
  <p>So when I want to use this element I should in the layout xml file put:</p>
  
  <pre><code>&lt;MyButton/&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;Button&gt;
  </code></pre>
  
  <p>Thanks!</p>