title: getLineCount() on TextView in RecyclerView returning zero
body: <p>I have a RecyclerView and I need to be able to check how many lines there are in a TextView.</p>
  
  <p>I'm using <code>getLineCount()</code> to get the number of lines, but when I open my app, it will return zero (even though there are 10+ lines in the TextView).</p>
  
  <p>After some testing, I found out that if I scroll down a few items in the RecyclerView and then scroll back up to the top, it will return the correct number of lines.</p>
  
  <p>Here is the relevant part of my RecyclerView adapter:</p>
  
  <pre><code>public void onBindViewHolder(ViewHolder holder, int position) {
      Post post = data.get(position);
  
      holder.textView.setText(post.getDescription());
  
      int linecount = holder.textView.getLineCount();
  
      Log.d(TAG, "Number of lines is " + linecount);
  }
  </code></pre>
  
  <p>What can I do to fix this?</p>