title: Xml layout file has too many views. How can I reduce them?
body: <p>My xml layout file has about 30 repeating LinearLayouts like the ones in the code snippet. Each LinearLayout contains two TextViews and one ImageView. The problem is that in android studio i get a message saying I have more than 80 views, and that the maximum number of views you can have is 80.
  So my question is: How can I reduce the number of views I use?  </p>
  
  <p>`</p>
  
  <pre><code>&lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/scrollView" &gt;
  
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;LinearLayout
              android:orientation="horizontal"
              android:id="@+id/LL1"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="60dp"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:background="@color/white"&gt;
  
  
                  &lt;TextView
                      android:id="@+id/TV1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="book"
                      android:layout_weight="1"
                      android:textSize="20sp"
                      android:layout_gravity="center_vertical"
                      android:paddingLeft="10dp"
                  /&gt;
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="책"
                      android:textSize="20sp"
                      android:layout_weight="1"
                      android:layout_gravity="center_vertical"
                      /&gt;
  
                  &lt;ImageView
                      android:layout_width="40dp"
                      android:layout_height="40dp"
                      android:background="@drawable/circle_gray_orange_ring"
                      android:src="@mipmap/audio_white_clear"
                      android:layout_margin="5dp"
                  /&gt;
              &lt;/LinearLayout&gt;
          &lt;LinearLayout
              android:id="@+id/LL2"
              android:orientation="horizontal"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="5dp"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:background="@color/white"&gt;
  
              &lt;TextView
                  android:id="@+id/TV2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="expensive"
                  android:layout_weight="1"
                  android:textSize="20sp"
                  android:layout_gravity="center_vertical"
                  android:paddingLeft="10dp"
              /&gt;
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="책"
                  android:textSize="20sp"
                  android:layout_weight="1"
                  android:layout_gravity="center_vertical"/&gt;
              &lt;ImageView
                  android:layout_width="40dp"
                  android:layout_height="40dp"
                  android:background="@drawable/circle_gray_orange_ring"
                  android:src="@mipmap/audio_white_clear"
                  android:layout_margin="5dp"
              /&gt;
          &lt;/LinearLayout&gt;`
  </code></pre>