title: How to dynamically set textview height android
body: <p>In my application I need to set dynamic text to my textview so I want it to get resized dynamically. I have set:</p>
  
  <pre><code>&lt;TextView
  
  android:id="@+id/TextView02" 
  
  android:layout_width="fill_parent"
  
  android:layout_height="wrap_content"
  
  android:textStyle="normal"
  
  android:layout_weight="1"
  
  android:singleLine="false"
  
  android:minLines="4" /&gt;
  </code></pre>
  
  <p>And from java code I am setting <strong>text</strong> of the <strong>textview</strong> at runtime..</p>
  
  <p>My textview height is not going beyond 1 line and the text is getting cut. Can anybody please help?</p>
  
  <p>Thanx in advance.
  And from java code I am setting <strong>text</strong> of the <strong>textview</strong> at runtime..</p>
  
  <p>My textview height is not going beyond 1 line and the text is getting cut. Can anybody please help?</p>
  
  <p>Thanx in advance.</p>