Solution: link
Good evening guys, how are you? I have a problem and to be clear I took a print to show you:
Asyoucanseethelist(RecyclerView)isfallingbehindwhileitshouldbeundertheToolbar/Actionbar,IdonotknowwhatI'mdoingwrong,butIcouldnotsolvethisproblem,doesanyoneknowthesolution?I'mjustusingthesupportlibraryandnothingelse,theerroroccursbothintheemulatorandinAndroid4.1andin7also,bothrealdevices.Thistoolbarhideswhentheuserdescendsthescreen,inthecasewhenhepasseshisfingerdownfrombelow,butthat'snotaproblemIactuallysettoworklikethat.
IhaveresearchedinseveralwaysbutIhavenotachievedanythingrelatedtoit,therearealwaysresultsofotherproblemsorotherfeatures.
IfIfindthesolutionI'llpostithere...
FollowXML:
<?xmlversion="1.0" encoding="utf-8"?>
<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:id="@+id/cl_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ListContatosActivity">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/srl_swipe"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_list"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"/>
</android.support.v4.widget.SwipeRefreshLayout>
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_height="wrap_content"
android:background="@color/bg_cadastro"
android:layout_width="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/my_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:minHeight="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways"/>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>