title: How to get value of a pressed button
body: <p>Hi all I am new to android development, infact its my first application. I want to know </p>
  
  <pre><code>&lt;button
   android:text="1" /&gt;
  </code></pre>
  
  <p>in above tag, text is the value of the button? if yes then how i can get this value or store it in a variable. if not, then how to define a value behind any button in android? </p>