title: Resize TextView Programmatically
body: <p>I have a textView in my app . Now, I want to resize textView on click. I gave its max height and max width but it does not resize it and show the width and height defined in the layout. Any help would be appreciated</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code> &lt;TextView
          android:id="@+id/textView2"
          android:layout_width="30dp"
          android:layout_height="40dp"
          android:layout_gravity="fill_horizontal"
          android:layout_marginLeft="10dip"
          android:layout_marginTop="10dip"
          android:text="Hello"/&gt;
  </code></pre>