How to determine the height of TextView programmatically?
<p>I have created an xml for a row of listview. It has just one Textview.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TextView 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="14sp"
    android:textColor="@color/white"
    android:text="A"&gt;
&lt;/TextView&gt;
</code></pre>

<p>I need to determine the height of this textview programmatically.
If I code textview.getTextSize(): this just returns the size of text.</p>

<p>Edit:</p>

<p>I am want to retrieve the height of the textview prior to rendering this on the screen. I mean, I want to inflate this:</p>

<pre><code>LayoutInflater inflater=LayoutInflater.from(this);
View view=inflater.inflate(R.layout.row, null);
TextView row_textview=((TextView)view);
</code></pre>

<p>and then calculate the height of "row_textview" instance.</p>
