title: Android : Decreasing size of the Button
body: <p>I am using <code>Button</code> in one of the layouts. I want <code>Button</code> size to be as small as the text/label size.</p>
  
  <p>I am using the following code.</p>
  
  <pre><code>&lt;Button 
  android:text="@string/cancle_button" 
  android:id="@+id/button1" 
  android:background="@drawable/back_button" 
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:gravity="center"
  android:textSize="12sp"
  android:textColor="#ffffff"
  android:textStyle="bold" /&gt;
  </code></pre>
  
  <p>But I want <code>Button</code> height to be same as text/label height. Whenever I decrease or increase the text height, <code>Button</code> height remains the same. How should I solve this problem?</p>