title: Reduce memory usage with lots of images
body: <p>Quick note, I'm not the most experienced with the android API and terminology. Sorry if I miss name something. My project is currently using API 17.</p>
  
  <p>I'm working on a project that has a RAL color chart fragment. This fragment has a little over 280 images of the color and the RAL number.</p>
  
  <p>The RAL fragment lags progressively worse as you scroll down. I've set largeHeap to true, but from what I've read you want to avoid doing this unless you have to. I've all compressed all images by almost 50% and this dramatically improved performance. I would compress them more, but it changes the colors slightly and this would make the chart more and more inaccurate than it already is.</p>
  
  <p>The basic layout of the page is three images per row</p>
  
  <p>(Looks kinda like this)</p>
  
  <p>Image1 Image2 Image3</p>
  
  <p>Image4 Image5 Image6</p>
  
  <p>...</p>
  
  <p>Image71 Image72</p>
  
  <p>(The final row only has 2)</p>
  
  <p>All the code for the images are formatted like this:</p>
  
  <pre><code>&lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_gravity="center_horizontal"
              android:orientation="horizontal"
              android:paddingTop="5dp"&gt;
  
              &lt;ImageView
                  android:id="@+id/imageView1000"
                  android:layout_width="100dp"
                  android:layout_height="100dp"
                  app:srcCompat="@drawable/ral1000" /&gt;
  
              &lt;ImageView
                  android:id="@+id/imageView1001"
                  android:layout_width="100dp"
                  android:layout_height="100dp"
                  app:srcCompat="@drawable/ral1001" /&gt;
  
              &lt;ImageView
                  android:id="@+id/imageView1002"
                  android:layout_width="100dp"
                  android:layout_height="100dp"
                  app:srcCompat="@drawable/ral1002" /&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I understand that the way I made it may be extremely inefficient, but I have been looking into ways to improve it. I've read a few things on Gridview and recylcerview, but I'm having difficulty wrapping my head around them. Could I use the include tag in this?</p>
  
  <p>Thanks, and insight is very much appreciated.</p>