title: Is there a way to call a already defined layout in another layout?
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="org.innoversetech.hobuddies.MainActivity"
      android:background="#FF7506"
      android:id="@+id/linMatcher"&gt;
      &lt;ScrollView
          android:id="@+id/scroll"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"&gt;
          &lt;LinearLayout
              android:orientation="vertical"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/lin1"&gt;
  
  &lt;!-- Psychometric Questions--&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="37dp"
          android:id="@+id/Surgency1"
          android:textSize="20sp"
          android:text="I am the life of the party"/&gt;
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_below="@id/Surgency1"
              android:orientation="vertical"&gt;
              &lt;!--Radio Buttons--&gt;
              &lt;RadioButton
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="Strongly Disagree"
                  android:id="@+id/SD"/&gt;
              &lt;RadioButton
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="Disagree"
                  android:id="@+id/D"/&gt;
              &lt;RadioButton
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="Not really"
                  android:id="@+id/NR"/&gt;
              &lt;RadioButton
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="Agree"
                  android:id="@+id/A"/&gt;
              &lt;RadioButton
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="Strongly Agree"
                  android:id="@+id/SA"/&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
    &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>What i want is to create 15 questions with similar radio buttons. Is there a way for me to create a radio button layout and just call it ? I wont have to copy paste the radio buttons again and again. Also how can I define each id's differently?</p>