Get lines in Adapter
<p>I have ArrayAdapter for my ListView. It have TextView and arrow image. If TextView have 3 lines or more I must show arrow image, but if lines count &lt; 3 arrow must be hidden.
But in fact Adapter doesn't have their lines count when before TextView will be draw. Any ideas? I need show item with arrow or not, depends on lines count.</p>

<p>This code not work (TextView receive line count only after drawing)</p>

<pre><code>if(holder.text.getLineCount() &lt; 3)
{
        holder.arrow.setVisibility(View.GONE);
}
else
{
        holder.arrow.setVisibility(View.VISIBLE);
}
</code></pre>
