title: Android - NestedScrollView doesn't scroll
body: <p>I have a problem with xml. When I create a <code>NestedScrollView</code> in android studio, it doesn't scroll in the xml preview. It is so important because if I don't see preview I can't see my work. 
  Also when I start the application, I see the latest version that should no longer be there because it was replaced by this code.</p>
  
  <p>Here is my xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.NestedScrollView
      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="wrap_content"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="mn.cdr.du.farnext.insertionActivity.InsertionActivity"
      tools:showIn="@layout/activity_insertion"
      android:paddingLeft="20dp"
      android:paddingRight="20dp"
      &gt;
  
      &lt;RelativeLayout
          android:layout_width="wrap_content"
          android:layout_height="match_parent"&gt;
  
          &lt;LinearLayout
              android:id="@+id/icon_static"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/carouselView"
              android:paddingBottom="20dp"
              android:paddingLeft="30dp"
              android:paddingRight="30dp"
              android:paddingTop="20dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="10dp"
                  android:orientation="vertical"&gt;
  
                  &lt;ImageView
                      android:id="@+id/cash_icon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/ic_paper_bill" /&gt;
  
                  &lt;TextView
                      android:id="@+id/cash_value"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@+id/cash_icon"
                      android:text="100€" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="10dp"
                  android:orientation="vertical"&gt;
  
                  &lt;ImageView
                      android:id="@+id/bed_icon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/ic_airline_seat_individual_suite_black_24dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/bed_value"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@+id/bed_icon"
                      android:layout_marginLeft="10dp"
                      android:paddingBottom="5px"
                      android:text="4" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="10dp"
                  android:orientation="vertical"&gt;
  
                  &lt;ImageView
                      android:id="@+id/people_icon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/ic_people_black_24dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/people_value"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="200" /&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"&gt;
  
                  &lt;ImageView
                      android:id="@+id/rating_icon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/ic_star_black_24dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/rating_value"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="3.5/5" /&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;android.support.v7.widget.CardView
              android:id="@+id/card_contact"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/icon_static"&gt;
  
              &lt;ImageView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="20dp"
                  android:layout_marginLeft="20dp"
                  android:layout_marginTop="20dp"
                  android:src="@drawable/ic_call_black_24dp" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="60dp"
                  android:layout_marginTop="5dp"
                  android:orientation="vertical"&gt;
  
                  &lt;TextView
                      android:id="@+id/contact_icon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="10dp"
                      android:text="Phone"
                      android:textStyle="bold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/contact_value"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="+39 1234567890" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;android.support.v7.widget.CardView
              android:id="@+id/card_address"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/card_contact"
              android:layout_marginTop="10dp"&gt;
  
              &lt;ImageView
                  android:id="@+id/address_icon"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="20dp"
                  android:layout_marginLeft="20dp"
                  android:layout_marginTop="20dp"
                  android:src="@drawable/ic_place_black_24dp" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="60dp"
                  android:layout_marginTop="5dp"
                  android:orientation="vertical"&gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="10dp"
                      android:text="Address"
                      android:textStyle="bold" /&gt;
  
                  &lt;TextView
                      android:id="@+id/address_value"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="La Farneta, 56048 Province of Pisa" /&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;TextView
              android:id="@+id/txt_place_card"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@+id/card_address"
              android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." /&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/txt_place_card"
              android:text="Services" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>