title: Create a LinearLayout inside a ScrollView
body: <p>I have attempted to create the <code>image</code> attached below. But for some reason my <code>image</code> is not right at the top of the <code>screen</code> and my <code>text</code> is not under each other. How would I go about fixing this? As I am new to android. </p>
  
  <h3>What I would like to achieve below image</h3>
  
  <p><a href="https://i.stack.imgur.com/6GDdR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6GDdR.jpg" alt="enter image description here"></a></p>
  
  <h3>Code Below</h3>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView 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"
      android:orientation="vertical"
      android:background="@color/colorPrimary"
      android:layout_gravity="center"&gt;
  
     &lt;LinearLayout
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="center"
         android:orientation="vertical"&gt;
  
  
         &lt;ImageView
             android:layout_gravity="center"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:src="@drawable/solver"/&gt;
  
         &lt;View
             android:layout_marginTop="5dp"
             android:layout_width="match_parent"
             android:layout_height="1dp"
             android:background="@android:color/darker_gray"/&gt;
  
         &lt;LinearLayout
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:orientation="horizontal"
             android:layout_gravity="center"&gt;
  
             &lt;LinearLayout
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:orientation="vertical"&gt;
  
                 &lt;TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="Record phone calls"
                     android:textColor="@color/colorWhite"
                     android:layout_gravity="center"
                     android:textSize="18sp"/&gt;
  
                 &lt;TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="Know who viewed your profile"
                     android:textColor="@color/colorWhite"
                     android:layout_gravity="center"
                     android:textSize="18sp"/&gt;
  
                 &lt;TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="Option to view profiles privately"
                     android:textColor="@color/colorWhite"
                     android:layout_gravity="center"
                     android:textSize="18sp"/&gt;
  
                 &lt;TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="Get the Premium badge on your profile"
                     android:textColor="@color/colorWhite"
                     android:layout_gravity="center"
                     android:textSize="18sp"/&gt;
  
                 &lt;TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="30 contact requests a month"
                     android:layout_gravity="center"
                     android:textColor="@color/colorWhite"
                     android:textSize="18sp"/&gt;
  
                 &lt;TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:text="No ads"
                     android:layout_gravity="center"
                     android:textColor="@color/colorWhite"
                     android:textSize="18sp"/&gt;
  
             &lt;/LinearLayout&gt;
  
         &lt;/LinearLayout&gt;
  
         &lt;View
             android:layout_marginTop="5dp"
             android:layout_width="match_parent"
             android:layout_height="1dp"
             android:background="@android:color/darker_gray"/&gt;
  
         &lt;Button
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="center"
             android:text="Monthly Premium      R19,19"/&gt;
  
         &lt;Button
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="center"
             android:text="Yearly Premium        R179,99"/&gt;
  
     &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>