title: lag when scrolling activity
body: <p>In my applications main activity I have 19 images with <code>textview</code> under them in a <code>NestedScrollView</code>. Images size is about 25 KB and when I run application on LG G3 it has lag. What can I do? And caching images can help me?</p>
  
  <p>XML file:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="ir.aftabeshafa.shafadoc.MainActivity"
      tools:showIn="@layout/app_bar_main"&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:paddingBottom="@dimen/activity_vertical_margin"
              android:paddingLeft="@dimen/activity_horizontal_margin"
              android:paddingRight="@dimen/activity_horizontal_margin"
              android:paddingTop="@dimen/activity_vertical_margin"&gt;
  
              &lt;LinearLayout
                  android:orientation="horizontal"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="16dp"&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView"
                          android:src="@mipmap/brain" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/brain"
                          android:id="@+id/textView"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView2"
                          android:src="@mipmap/dentist" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/dentist"
                          android:id="@+id/textView2"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView3"
                          android:src="@mipmap/dermatologist" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/dermatologist"
                          android:id="@+id/textView3"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:orientation="horizontal"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_marginBottom="16dp"&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView4"
                          android:src="@mipmap/digestive" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/digestive"
                          android:id="@+id/textView4"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView5"
                          android:src="@mipmap/ent" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/ent"
                          android:id="@+id/textView5"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView6"
                          android:layout_marginTop="8dp"
                          android:src="@mipmap/eye" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/eye"
                          android:id="@+id/textView6"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:orientation="horizontal"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_marginBottom="16dp"&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView7"
                          android:src="@mipmap/general" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/general"
                          android:id="@+id/textView7"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:gravity="center"
                      android:layout_weight="1"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView8"
                          android:src="@mipmap/gynecologist" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/gynecologist"
                          android:id="@+id/textView8"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView9"
                          android:src="@mipmap/heart" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/heart"
                          android:id="@+id/textView9"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:orientation="horizontal"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_marginBottom="16dp"&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView10"
                          android:src="@mipmap/infection" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/infection"
                          android:id="@+id/textView10"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:gravity="center"
                      android:layout_weight="1"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView11"
                          android:src="@mipmap/inner" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/inner"
                          android:id="@+id/textView11"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:orientation="vertical"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:layout_width="96dp"
                          android:layout_height="96dp"
                          android:id="@+id/imageView12"
                          android:src="@mipmap/kidney" /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="?android:attr/textAppearanceSmall"
                          android:text="@string/kidney"
                          android:id="@+id/textView12"
                          android:layout_marginTop="8dp" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>