title: Why doesn't this nested TextView work while others do in the same code?
body: <p><strong>Considering this LinearLayout containing..</strong></p>
  
  <ul>
  <li><p>One nested Linear Layout with two child views</p>
  
  <ul>
  <li><p>one imageView</p></li>
  <li><p>one Textview</p></li>
  </ul></li>
  <li><p>One textView</p></li>
  <li>One Button</li>
  </ul>
  
  <p>Why can I successfully show text content on the outer TextView using findViewById and setText while the inner Textview (inside nested linear view) shows blank?</p>
  
  <p>Here is the code for onCreate:</p>
  
  <pre><code>LayoutInflater inflater = LayoutInflater.from(Item.this);
  LinearLayout itemLayout = (LinearLayout)inflater.inflate(R.layout.activity_item, null);            
  Button proformaButton = (Button)itemLayout.getChildAt(2);
  
  roformaButton.setOnClickListener(this);
  
  
  setContentView(itemLayout);
  
  TextView titleTitla = (TextView)findViewById(R.id.item_title);
  TextView itemBody = (TextView)findViewById(R.id.item_body); 
  
  titleTitla.setText("Tomatoes");
  itemBody.setText("Potatoes");
  </code></pre>
  
  <p>While debugging I can see that the view is found by Id and I can also see that setText does it work (mText field of TextView), but the activity does not show anything for item_title.</p>
  
  <p>I am asking how to fix this but if it's not a trivial thing a hint of explanation would be very appreciated.</p>
  
  <p>If it helps, here's the xml:</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="0dip"
          android:orientation="horizontal"
          android:layout_weight="1"&gt;
  
          &lt;ImageView
              android:id="@+id/item_picture"
              android:layout_width="0dip"
              android:layout_height="fill_parent"
              android:contentDescription="@string/image_item"&gt;
          &lt;/ImageView&gt;
  
          &lt;TextView 
              android:id="@+id/item_title"
              android:layout_width="0dip"
              android:layout_height="fill_parent"&gt;
          &lt;/TextView&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;TextView 
          android:id="@+id/item_body"
          android:layout_width="fill_parent"
          android:layout_height="0dip"
          android:layout_weight="2"&gt;
      &lt;/TextView&gt;
  
      &lt;Button
           android:id="@+id/btnOrderItem"
           android:layout_width="fill_parent"
           android:layout_height="wrap_content"
           android:text="@string/order_button"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>