title: Setting Nested TextView Text
body: <p>I've created a layout for a button format I use multiple times. The button format has a TextView and an ImageView. With the way I'm including this layout in my main activity, I don't think I'm able to change the text of the inner TextView dynamically in Java or in the XML. Is there a different way I can do this such that I can set the text of the inner TextView?</p>
  
  <p><strong>Layout:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal" android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:id="@+id/settingslayout"&gt;
  
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginLeft="25dp"
      android:layout_marginTop="13dp"
      android:textSize="20dp"
      android:text="CHANGE ME"
      android:id="@+id/text" /&gt;
  
  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="12dp"
      android:layout_marginRight="25dp"
      android:layout_alignParentRight="true"
      android:src="@drawable/left"
      android:adjustViewBounds="true"
      android:scaleType="centerCrop"
      android:maxHeight="30dp"
      android:maxWidth="30dp"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>Main Activity:</strong></p>
  
  <pre><code>...
  &lt;include layout="@layout/settings_layout"
      android:layout_width="fill_parent"
      android:layout_height="match_parent"
      android:layout_below="@+id/accountStaticUnderline"
      android:id="@+id/termBegin"
      android:text="TEST" /&gt; //DOESNT WORK
  ...
  &lt;/RelativeLayout&gt;
  </code></pre>