title: Nested findViewById
body: <p>I have this problem accessing TextView inside Relative Layout inside LinearLayout</p>
  
  <p>Let's say I have these views in the file row.xml</p>
  
  <pre><code>&lt;LinearLayout&gt;
      &lt;TextView android:id="@+id/title" /&gt;
      &lt;RelativeLayout android:id="@+id/a_parent"&gt;
          &lt;TextView android:id="@+id/a"&gt;
      &lt;/RelativeLayout&gt;
      &lt;RelativeLayout android:id="@+id/b_parent"&gt;
          &lt;TextView android:id="@+id/b"&gt;
      &lt;/RelativeLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now I want to change the value of TextViews from an activity</p>
  
  <pre><code>LayoutInflater li=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  LinearLayout temp=(LinearLayout) li.inflate(R.layout.row, null);
  ((TextView)temp.findViewById(R.id.title)).setText("This is title");
  RelativeLayout rl=(RelativeLayout)temp.findViewById(R.id.a_parent);
  ((TextView)rl.findViewById(R.id.a)).setText("an this is the content of a");
  </code></pre>
  
  <p>I can successfully set the TextView of id 'title', but an error appears when approaching the last line. It says that the error was caused by android.content.res.Resources$NotFoundException: String resource ID #0x1</p>
  
  <p>Can anyone tell me what is wrong, how to fix it, and why does the code not work as I expected?</p>
  
  <p>Thanks</p>