SwipeRefreshLayout hides RecyclerView's upper part?
<p>I'm beginner in android, and I don't know why this happens.
Without SwipeRefreshLayout the RecyclerView is fully visible, but with SwipeRefreshLayout, the first item isn't shown. </p>

<p>Maybe it's under the toolbar? (The hidden item exists, I checked it in numerous ways.)</p>

<pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/swipe_layout"&gt;

&lt;android.support.v7.widget.RecyclerView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/MainRecyclerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
&lt;/android.support.v7.widget.RecyclerView&gt;

&lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
</code></pre>

<p>List:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:paddingTop="8dip"
    android:paddingBottom="8dip"
    android:paddingLeft="16dip"
    android:paddingRight="16dip"
    android:weightSum="10"
    android:gravity="center"&gt;


    &lt;ImageView
        android:id="@+id/CharacterItemRankImageView"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_weight="0"
        android:src="@drawable/challengemode_medal_bronze"/&gt;

    &lt;TextView android:id="@+id/CharacterItemNameTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="3.5"
        tools:text="Name"/&gt;


    &lt;TextView android:id="@+id/CharacterItemPointsTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAlignment="center"
        android:layout_weight="6"
        tools:text="Points"/&gt;

    &lt;ImageButton
        android:id="@+id/CharacterItemRemoveButton"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_weight="0.5"
        android:src="@drawable/ic_delete_grey600_48dp"
        android:scaleType="fitXY" style="@style/Widget.AppCompat.Button.Borderless" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/dfHYw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dfHYw.png" alt="Without Swipe"></a></p>

<p><a href="https://i.stack.imgur.com/s3GfN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s3GfN.png" alt="With Swipe"></a></p>