title: How to make a scrollable layout that includes a listview + imageview
body: <p>So, i got a fragment with a listview inside the layout file. Above this listview is an imageview with a logo. </p>
  
  <p><a href="https://i.stack.imgur.com/RMO96.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RMO96.png" alt="Layout"></a></p>
  
  <p>The problem i'm facing is that i can't set the scroll to the entire layout.
  I have red on other posts that you shouldn't do this, but i have to redo so much code if i must do it in another way. </p>
  
  <p>I'm also getting data from an API, and the amount of elements can change. That's why i'm using a listview.</p>
  
  <p>I don't have a pref regarding layouttype. At the moment I am using the ScrollView layout.</p>
  
  <pre><code>&lt;ScrollView
  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=".fragments.HomeFragment"
  android:fillViewport="true"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
  &lt;ImageView
      android:id="@+id/imageView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="25dp"
      android:layout_gravity="center"
      android:adjustViewBounds="true"
      android:src="@drawable/logo"/&gt;
  
      &lt;ListView
          android:id="@+id/listFemArrangementer"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:listSelector="@color/white"
          android:scrollbars="none"&gt;
  
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>Does anyone have a good solution for this problem?</p>