title: grid view inside a list view or 2 list views is better?
body: <p>I tried to have a grid view with a listview in my activity but I got an error.</p>
  
  <p>Are there any another way to have the below result ? </p>
  
  <p>In my main activity I want to have one a list view display larg imageview and second display them as 2 image per row , should I use grid view or second list view is enough?</p>
  
  <p><a href="https://i.stack.imgur.com/wqB3G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wqB3G.png" alt="enter image description here"></a></p>
  
  <p>this is my code </p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:fillViewport="true" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="center"
            android:text="sssss"
              android:textSize="16sp"
              android:padding="10dp"
              android:background="#ffe474" /&gt;
  
          &lt;ListView
              android:id="@+id/list3"
              android:layout_width="wrap_content"
              android:layout_height="1500dp"
              android:background="#eeeeee" &gt;
          &lt;/ListView&gt;
  
           &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="center_vertical"
              android:text="Recommanded"
              android:textSize="18sp"
              android:padding="10dp"
              android:background="#ffe474" /&gt;
  
  
          &lt;ListView
              android:id="@+id/list1"
              android:layout_width="wrap_content"
              android:layout_height="1500dp"
              android:background="#eeeeee" &gt;
          &lt;/ListView&gt;
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/ScrollView&gt;
  </code></pre>