title: Why can't I see the right side of my activity on my phone?
body: <p>I'm trying to code an app for a school project. I'm stuck with the design. I can't see the right side of my activity on my phone, but it's appearing on the Android Studio preview. It's possible that my code isn't right or that i've didn't respect something.</p>
  
  <p>And here are the 2 screenshots:
  Android Studio Preview:
  <a href="https://pasteboard.co/I6uT89f.png" rel="nofollow noreferrer">https://pasteboard.co/I6uT89f.png</a></p>
  
  <p>Phone view:
  <a href="https://pasteboard.co/I6uSgpW.jpg" rel="nofollow noreferrer">https://pasteboard.co/I6uSgpW.jpg</a></p>
  
  <p>Here's the code:</p>
  
  <p>activity_main.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;android.support.design.widget.CoordinatorLayout 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:background="@color/colorPrimaryDark"
      tools:context=".MainActivity"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;include
          android:id="@+id/include"
          layout="@layout/content_main" /&gt;
  
      &lt;com.leinardi.android.speeddial.SpeedDialOverlayLayout
          android:id="@+id/overlay"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:backgroundTint="#131313"/&gt;
  
          &lt;com.leinardi.android.speeddial.SpeedDialView
              android:id="@+id/speedDial"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom|end"
              app:sdMainFabClosedSrc="@drawable/ic_menu"
              app:sdOverlayLayout="@id/overlay"/&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>content_main.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&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"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context=".MainActivity"
      tools:showIn="@layout/activity_main"&gt;
  
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:orientation="vertical"
          android:paddingBottom="5dp"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="340dp"
              android:layout_centerInParent="true"
              android:layout_marginLeft="10dp"
              android:layout_marginRight="10dp"&gt;
              &lt;ImageView
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:src="@drawable/header2"
                  android:scaleType="fitCenter"
                  android:layout_marginTop="-20dp"/&gt;
  
          &lt;/RelativeLayout&gt;
          &lt;RelativeLayout
              android:clickable="true"
              android:focusable="true"
              android:id="@+id/plante1"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_centerVertical="true"
              android:background="@drawable/ripple"
              android:layout_marginLeft="10dp"
              android:layout_marginRight="10dp"
              android:layout_marginTop="-10dp"
              android:layout_marginBottom="15dp"
              android:gravity="center"&gt;
  
              &lt;RelativeLayout
                  android:layout_width="60dp"
                  android:layout_height="60dp"
                  android:layout_marginLeft="10dp"
                  android:background="@drawable/logo_shape"&gt;
  
                  &lt;ImageView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_centerVertical="true"
                      android:layout_centerHorizontal="true"/&gt;
              &lt;/RelativeLayout&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_centerHorizontal="true"
                  android:orientation="vertical"&gt;
  
                  &lt;fr.visufo.titouan.jardin.UnderlinedTextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="80dp"
                      android:layout_marginTop="0dp"
                      android:gravity="left"
                      android:text="Plante 1"
                      android:textSize="20dp"
                      android:fontFamily="@font/raleway_light"
                      android:textColor="#000000"
                      app:underlineColor="#6DB85C"
                      app:underlineWidth="10px"/&gt;
              &lt;/RelativeLayout&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="vertical"&gt;
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_marginLeft="80dp"
                      android:layout_marginTop="30dp"
                      android:textSize="15dp"
                      android:textColor="#000000"
                      android:text="Pensez à rentrer votre plante demain"
                      android:fontFamily="@font/raleway_light"/&gt;
              &lt;/RelativeLayout&gt;
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_marginLeft="335dp"
                  android:layout_marginRight="7dp"
                  android:layout_marginTop="-4dp"
                  android:background="@drawable/degrees_shape"&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:text="0°C"
                      android:gravity="center"
                      android:fontFamily="@font/roboto"
                      android:textSize="18dp"
                      android:textColor="#636363"/&gt;
              &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
  
          There are 8 similar relative layouts showing quite the same thing, here's 
          only one
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/ScrollView&gt;
  </code></pre>