title: setText() not working on inflated layout
body: <p>I'm trying to inflate a <code>LinearLayout</code> to build a customized section on my screen.</p>
  
  <pre><code>String txt = "testing";
  LinearLayout rowLink = (LinearLayout)getLayoutInflater().inflate(R.layout.additional_link, null);
  TextView tvCsAddLink = (TextView)findViewById(R.id.tvCsAddLink);                                       
  tvCsAddLink.setText(txt);
  
  // adding this inflated layout to an existing layout
  myLinearLayout.addView(rowLink);
  </code></pre>
  
  <p>The content of my <code>additional_link.xml</code> is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:id="@+id/llCsAddLink"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/white_row"
      android:clickable="true"
      &gt;        
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:src="@drawable/youtube_icon" /&gt;        
      &lt;TextView
          android:id="@+id/tvCsAddLink"       
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"        
          android:paddingLeft="10px"
          android:paddingRight="20px"
          android:textSize="16dp"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:layout_gravity="center_vertical" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I'm getting a <code>NullPointerException</code> on the line:</p>
  
  <pre><code>tvCsAddLink.setText(txt);
  </code></pre>