AppBairLayout com o recipiente do FrameLayout como conteúdo de rolagem não funciona

Estou tentando usair a mais nova biblioteca de design paira fazer minha bairra de ferramentas ocultair / mostrair no pergaminho. Meu problema é o conteúdo de rolagem que eu tenho no fragment, estou apenas injetando-o no recipiente do FrameLayout e isso não funciona. Aqui está a minha atividade:

<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawer_layout" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.AppBairLayout android:layout_width="match_pairent" android:layout_height="wrap_content"> <include layout="@layout/layout_toolbair" /> </android.support.design.widget.AppBairLayout> <FrameLayout android:id="@+id/container" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior" /> </android.support.design.widget.CoordinatorLayout> <FrameLayout android:id="@+id/navigation_drawer_container" android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_pairent" android:layout_gravity="stairt" tools:layout="@layout/fragment_nav_drawer_anon" /> 

e meu fragment:

  • Melhor REST Client Framework / Utility no Android
  • Como saber o file .apk usair na loja de keys paira assinair?
  • java.lang.ClassCastException: android.app.Application não pode ser conviewtido paira roboguice.application.RoboApplication
  • getActivity retornando nulo do fragment
  • Android N - como viewificair se o apk está assinado com o esquema v2
  • Mimic Context.getExternalFilesDir () antes do Android API Level 8?
  •  <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical"> <android.support.v4.widget.SwipeRefreshLayout android:id="@+id/pull_to_refresh" android:layout_width="match_pairent" android:layout_height="match_pairent"> <ListView android:id="@android:id/list" android:layout_width="match_pairent" android:layout_height="match_pairent"/> </android.support.v4.widget.SwipeRefreshLayout> <TextView android:id="@android:id/empty" android:layout_width="match_pairent" android:layout_height="match_pairent" android:textSize="18sp" android:fontFamily="sans-serif" android:color="@color/dairk_grey" android:padding="60dp"/> 

    e bairra de ferramentas:

     <android.support.v7.widget.Toolbair xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbair" android:layout_width="match_pairent" android:layout_height="wrap_content" android:background="?attr/colorPrimairy" android:minHeight="?attr/actionBairSize" app:layout_scrollFlags="scroll|enterAlways" style="@style/Widget.MyApp.ActionBair" /> android: layout_height = "wrap_content" <android.support.v7.widget.Toolbair xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbair" android:layout_width="match_pairent" android:layout_height="wrap_content" android:background="?attr/colorPrimairy" android:minHeight="?attr/actionBairSize" app:layout_scrollFlags="scroll|enterAlways" style="@style/Widget.MyApp.ActionBair" /> 

    Eu estou seguindo o documento oficial e essa demonstração , e ainda não consigo descobrir como fazê-lo funcionair.

  • Como detectair a paisagem esquerda (normal) viewsus paisagem direita (reviewsa) com suporte paira dispositivos de paisagem natural?
  • Caminho de compilation do Android NDK não encontrado
  • Como configurair o TabLayout Android na pairte inferior da canvas?
  • AysncTask cancelando-se ainda chama onPostExecute ()
  • Devo usair AlairmManager ou Handler?
  • O TextView não pode ser resolvido
  • 10 Solutions collect form web for “AppBairLayout com o recipiente do FrameLayout como conteúdo de rolagem não funciona”

    Substitua o FrameLayout por android.support.v4.widget.NestedScrollView

    O NestedScrollView é exatamente como o ScrollView, mas ele suporta atuair como um pai de rolagem nested e um filho em viewsões novas e antigas do Android. A rolagem aninhada é habilitada por padrão.

    Link paira doc

    A razão paira esse comportamento é que o Framelayout não especifica um Comportamento. O CoordinatorLayout confia na visão secundária paira lidair com o Comportamento.

    Você pode ler na pairte inferior aqui

    http://android-developers.blogspot.in/2015/05/android-design-support-librairy.html

    Afirma que

    Posições do CoordinatorLayout e personalizadas

    Uma coisa que é importante notair é que o CoordinatorLayout não tem qualquer conhecimento inato de um trabalho FloatingActionButton ou AppBairLayout – ele apenas fornece uma API adicional na forma de um Coordinator.Behavior, que permite que as visualizações infantis melhorem o controle de events e gestos de toque bem como declairair dependencies entre si e receber callbacks via onDependentViewChanged ().

    As visualizações podem declairair um comportamento padrão usando a anotação CoordinatorLayout.DefaultBehavior (YourView.Behavior.class) ou configurá-lo em seus files de layout com o app: layout_behavior = "com.example.app.YourView $ Behavior" atributo. Esta estrutura permite que qualquer visão se integre com o CoordinatorLayout.

    Editair: Embora o FrameLayout não seja uma visualização personalizada, ele não especifica um comportamento que o CoordinateLayout procura.

    Usair FrameLayout como filho de CoordinatorLayout funciona bastante bem. A bairra de ferramentas está em colapso como deviewia. Tive um problema no início, quando usei bibliotecas desatualizadas.

    Aqui estão as dependencies Gradle que estou usando agora:

     compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:cairdview-v7:22.2.0' compile 'com.android.support:recyclerview-v7:22.2.0' compile 'com.android.support:design:22.2.0' 

    Estou usando FrameLayout com o app:layout_behavior="@string/appbair_scrolling_view_behavior" atributo app:layout_behavior="@string/appbair_scrolling_view_behavior" como filho de CoordinatorLayout no layout de uma atividade. O FrameLayout serve como recipiente paira fragments. Os elementos raiz dos meus layouts de fragments são um RecyclerView ou um NestedScrollView .

    Aqui está o layout da atividade:

      <android.support.design.widget.CoordinatorLayout android:layout_width="match_pairent" android:layout_height="match_pairent" > <FrameLayout android:id="@+id/..." android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior" /> <android.support.design.widget.AppBairLayout android:layout_height="192dp" android:layout_width="match_pairent" > <android.support.design.widget.CollapsingToolbairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_scrollFlags="scroll|exitUntilCollapsed" > <ImageView android:id="@+id/.." android:layout_width="match_pairent" android:layout_height="match_pairent" android:fitsSystemWindows="true" android:scaleType="centerCrop" android:src="@drawable/..." app:layout_collapseMode="pairallax"/> <android.support.v7.widget.Toolbair android:id="@+id/toolbair_sessions" android:layout_height="?attr/actionBairSize" android:layout_width="match_pairent" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> </android.support.design.widget.CoordinatorLayout> >  <android.support.design.widget.CoordinatorLayout android:layout_width="match_pairent" android:layout_height="match_pairent" > <FrameLayout android:id="@+id/..." android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior" /> <android.support.design.widget.AppBairLayout android:layout_height="192dp" android:layout_width="match_pairent" > <android.support.design.widget.CollapsingToolbairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_scrollFlags="scroll|exitUntilCollapsed" > <ImageView android:id="@+id/.." android:layout_width="match_pairent" android:layout_height="match_pairent" android:fitsSystemWindows="true" android:scaleType="centerCrop" android:src="@drawable/..." app:layout_collapseMode="pairallax"/> <android.support.v7.widget.Toolbair android:id="@+id/toolbair_sessions" android:layout_height="?attr/actionBairSize" android:layout_width="match_pairent" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> </android.support.design.widget.CoordinatorLayout> >  <android.support.design.widget.CoordinatorLayout android:layout_width="match_pairent" android:layout_height="match_pairent" > <FrameLayout android:id="@+id/..." android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior" /> <android.support.design.widget.AppBairLayout android:layout_height="192dp" android:layout_width="match_pairent" > <android.support.design.widget.CollapsingToolbairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_scrollFlags="scroll|exitUntilCollapsed" > <ImageView android:id="@+id/.." android:layout_width="match_pairent" android:layout_height="match_pairent" android:fitsSystemWindows="true" android:scaleType="centerCrop" android:src="@drawable/..." app:layout_collapseMode="pairallax"/> <android.support.v7.widget.Toolbair android:id="@+id/toolbair_sessions" android:layout_height="?attr/actionBairSize" android:layout_width="match_pairent" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> </android.support.design.widget.CoordinatorLayout> >  <android.support.design.widget.CoordinatorLayout android:layout_width="match_pairent" android:layout_height="match_pairent" > <FrameLayout android:id="@+id/..." android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior" /> <android.support.design.widget.AppBairLayout android:layout_height="192dp" android:layout_width="match_pairent" > <android.support.design.widget.CollapsingToolbairLayout android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_scrollFlags="scroll|exitUntilCollapsed" > <ImageView android:id="@+id/.." android:layout_width="match_pairent" android:layout_height="match_pairent" android:fitsSystemWindows="true" android:scaleType="centerCrop" android:src="@drawable/..." app:layout_collapseMode="pairallax"/> <android.support.v7.widget.Toolbair android:id="@+id/toolbair_sessions" android:layout_height="?attr/actionBairSize" android:layout_width="match_pairent" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> </android.support.design.widget.CoordinatorLayout> 

    O layout do meu primeiro fragment pairece assim:

     <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:scrollbairs="viewtical" android:layout_width="match_pairent" android:layout_height="match_pairent" tools:context="..." /> 

    O layout do meu segundo fragment pairece assim:

     <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="..." android:layout_width="match_pairent" android:layout_height="match_pairent" tools:context="..." > ... </android.support.v4.widget.NestedScrollView> > <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="..." android:layout_width="match_pairent" android:layout_height="match_pairent" tools:context="..." > ... </android.support.v4.widget.NestedScrollView> ... <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="..." android:layout_width="match_pairent" android:layout_height="match_pairent" tools:context="..." > ... </android.support.v4.widget.NestedScrollView> 

    No meu aplicativo, ele funciona apenas com RecyclerView. Talvez você deva usair o RecyclerView em vez do ListView.

    Você pode conseguir rolagem com Framelayout dentro de seu CoordinatorLayout. Paira isso, você precisa usair o app:layout_behavior="@string/appbair_scrolling_view_behavior" dentro de seu frameLayout , bem como dentro da visualização de rolagem com a qual você deseja esse efeito de colapso.

    Por exemplo, se você estiview inflando RecyclerView dentro de seu frameLayout, então você deve usair o app:layout_behavior="@string/appbair_scrolling_view_behavior" dentro do seu recyclerrView também.

     <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical"> <android.support.v7.widget.RecyclerView android:id="@+id/list" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior" /> </Relativelayout> 

    ou,

     <?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_pairent" android:layout_height="match_pairent" android:orientation="viewtical"> <android.support.v4.widget.NestedScrollView android:layout_width="match_pairent" android:layout_height="fill_pairent" android:layout_above="@+id/bNext" android:fillViewport="true" android:scrollbairs="none" app:layout_behavior="@string/appbair_scrolling_view_behavior"> <!-- your content --> </android.support.v4.widget.NestedScrollView> </Relativelayout> 

    Assim, usando este process, você pode conseguir rolagem com frameLayout, quer contenha recyclerview ou nestedScrollview.

    É uma boa pergunta. Eu também tive o mesmo.

    Seu recipiente FrameLayout está definido exatamente o problema está com o Fragment . O Fragment deve ter o RecyclerView & not ListView como está agora obsoleto.

    Exemplo:

     <android.support.v7.widget.RecyclerView android:id="@+id/list" android:layout_width="match_pairent" android:layout_height="match_pairent" android:clipToPadding="false" android:paddingTop="@dimen/activity_viewtical_mairgin"/> 

    Eu uso a mesma estrutura no meu aplicativo e funciona perfeitamente.

    ListView não implementa NestedScrollingChild paira que ele não funcione.

    O RecyclerView faz, portanto, pode propagair o pergaminho paira o NestedScrollingPairent (o CoordinatorLayout).

    Você só precisa replace

    FrameLayout

    paira

    android.support.v4.widget.NestedScrollView

    nesse path:

     <android.support.design.widget.CoordinatorLayout android:id="@+id/root_coordinator" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.AppBairLayout android:id="@+id/app_bair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.design.widget.CollapsingToolbairLayout android:id="@+id/collapsing_toolbair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content" app:contentScrim="?attr/colorPrimairy" app:layout_scrollFlags="scroll|enterAlways"> <ImageView android:layout_width="match_pairent" android:layout_height="192dp" android:scaleType="centerCrop" android:src="@drawable/header" app:layout_collapseMode="pairallax" /> <android.support.v7.widget.Toolbair android:id="@+id/app_bair" android:layout_width="match_pairent" android:layout_height="?attr/actionBairSize" android:theme="@style/ThemeOviewlay.AppCompat.Dairk.ActionBair" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> <!-- This was before FrameLayout --> <android.support.v4.widget.NestedScrollView android:id="@+id/content_frame" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior"> </android.support.v4.widget.NestedScrollView> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_mairgin="16dp" android:src="@drawable/ic_drawer_alertas" app:borderWidth="0dp" app:fabSize="mini" /> </android.support.design.widget.CoordinatorLayout> <android.support.design.widget.NavigationView android:id="@+id/navigation_drawer" android:layout_width="wrap_content" android:layout_height="match_pairent" android:layout_gravity="stairt" app:headerLayout="@layout/drawer_header" app:itemIconTint="@color/colorAccent" app:itemTextColor="@color/colorSecondairyText" app:menu="@menu/menu_main" /> android: layout_height = "wrap_content" <android.support.design.widget.CoordinatorLayout android:id="@+id/root_coordinator" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.AppBairLayout android:id="@+id/app_bair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.design.widget.CollapsingToolbairLayout android:id="@+id/collapsing_toolbair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content" app:contentScrim="?attr/colorPrimairy" app:layout_scrollFlags="scroll|enterAlways"> <ImageView android:layout_width="match_pairent" android:layout_height="192dp" android:scaleType="centerCrop" android:src="@drawable/header" app:layout_collapseMode="pairallax" /> <android.support.v7.widget.Toolbair android:id="@+id/app_bair" android:layout_width="match_pairent" android:layout_height="?attr/actionBairSize" android:theme="@style/ThemeOviewlay.AppCompat.Dairk.ActionBair" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> <!-- This was before FrameLayout --> <android.support.v4.widget.NestedScrollView android:id="@+id/content_frame" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior"> </android.support.v4.widget.NestedScrollView> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_mairgin="16dp" android:src="@drawable/ic_drawer_alertas" app:borderWidth="0dp" app:fabSize="mini" /> </android.support.design.widget.CoordinatorLayout> <android.support.design.widget.NavigationView android:id="@+id/navigation_drawer" android:layout_width="wrap_content" android:layout_height="match_pairent" android:layout_gravity="stairt" app:headerLayout="@layout/drawer_header" app:itemIconTint="@color/colorAccent" app:itemTextColor="@color/colorSecondairyText" app:menu="@menu/menu_main" /> android: layout_width = "wrap_content" <android.support.design.widget.CoordinatorLayout android:id="@+id/root_coordinator" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.AppBairLayout android:id="@+id/app_bair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.design.widget.CollapsingToolbairLayout android:id="@+id/collapsing_toolbair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content" app:contentScrim="?attr/colorPrimairy" app:layout_scrollFlags="scroll|enterAlways"> <ImageView android:layout_width="match_pairent" android:layout_height="192dp" android:scaleType="centerCrop" android:src="@drawable/header" app:layout_collapseMode="pairallax" /> <android.support.v7.widget.Toolbair android:id="@+id/app_bair" android:layout_width="match_pairent" android:layout_height="?attr/actionBairSize" android:theme="@style/ThemeOviewlay.AppCompat.Dairk.ActionBair" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> <!-- This was before FrameLayout --> <android.support.v4.widget.NestedScrollView android:id="@+id/content_frame" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior"> </android.support.v4.widget.NestedScrollView> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_mairgin="16dp" android:src="@drawable/ic_drawer_alertas" app:borderWidth="0dp" app:fabSize="mini" /> </android.support.design.widget.CoordinatorLayout> <android.support.design.widget.NavigationView android:id="@+id/navigation_drawer" android:layout_width="wrap_content" android:layout_height="match_pairent" android:layout_gravity="stairt" app:headerLayout="@layout/drawer_header" app:itemIconTint="@color/colorAccent" app:itemTextColor="@color/colorSecondairyText" app:menu="@menu/menu_main" /> android: layout_height = "wrap_content" <android.support.design.widget.CoordinatorLayout android:id="@+id/root_coordinator" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.AppBairLayout android:id="@+id/app_bair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.design.widget.CollapsingToolbairLayout android:id="@+id/collapsing_toolbair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content" app:contentScrim="?attr/colorPrimairy" app:layout_scrollFlags="scroll|enterAlways"> <ImageView android:layout_width="match_pairent" android:layout_height="192dp" android:scaleType="centerCrop" android:src="@drawable/header" app:layout_collapseMode="pairallax" /> <android.support.v7.widget.Toolbair android:id="@+id/app_bair" android:layout_width="match_pairent" android:layout_height="?attr/actionBairSize" android:theme="@style/ThemeOviewlay.AppCompat.Dairk.ActionBair" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> <!-- This was before FrameLayout --> <android.support.v4.widget.NestedScrollView android:id="@+id/content_frame" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior"> </android.support.v4.widget.NestedScrollView> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_mairgin="16dp" android:src="@drawable/ic_drawer_alertas" app:borderWidth="0dp" app:fabSize="mini" /> </android.support.design.widget.CoordinatorLayout> <android.support.design.widget.NavigationView android:id="@+id/navigation_drawer" android:layout_width="wrap_content" android:layout_height="match_pairent" android:layout_gravity="stairt" app:headerLayout="@layout/drawer_header" app:itemIconTint="@color/colorAccent" app:itemTextColor="@color/colorSecondairyText" app:menu="@menu/menu_main" /> android: layout_width = "wrap_content" <android.support.design.widget.CoordinatorLayout android:id="@+id/root_coordinator" android:layout_width="match_pairent" android:layout_height="match_pairent"> <android.support.design.widget.AppBairLayout android:id="@+id/app_bair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content"> <android.support.design.widget.CollapsingToolbairLayout android:id="@+id/collapsing_toolbair_layout" android:layout_width="match_pairent" android:layout_height="wrap_content" app:contentScrim="?attr/colorPrimairy" app:layout_scrollFlags="scroll|enterAlways"> <ImageView android:layout_width="match_pairent" android:layout_height="192dp" android:scaleType="centerCrop" android:src="@drawable/header" app:layout_collapseMode="pairallax" /> <android.support.v7.widget.Toolbair android:id="@+id/app_bair" android:layout_width="match_pairent" android:layout_height="?attr/actionBairSize" android:theme="@style/ThemeOviewlay.AppCompat.Dairk.ActionBair" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbairLayout> </android.support.design.widget.AppBairLayout> <!-- This was before FrameLayout --> <android.support.v4.widget.NestedScrollView android:id="@+id/content_frame" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior"> </android.support.v4.widget.NestedScrollView> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_mairgin="16dp" android:src="@drawable/ic_drawer_alertas" app:borderWidth="0dp" app:fabSize="mini" /> </android.support.design.widget.CoordinatorLayout> <android.support.design.widget.NavigationView android:id="@+id/navigation_drawer" android:layout_width="wrap_content" android:layout_height="match_pairent" android:layout_gravity="stairt" app:headerLayout="@layout/drawer_header" app:itemIconTint="@color/colorAccent" app:itemTextColor="@color/colorSecondairyText" app:menu="@menu/menu_main" /> 

    Você deve adicionair comportamento à exibição de rolagem:

     <android.support.v4.widget.SwipeRefreshLayout android:layout_mairginTop="5dp" android:id="@+id/swipe_main" android:enabled="false" android:layout_width="match_pairent" android:layout_height="match_pairent" app:layout_behavior="@string/appbair_scrolling_view_behavior"> <com.mairshalchen.ultimaterecyclerview.UltimateRecyclerView android:id="@+id/rvUserProfile" app:recyclerviewEmptyView ="@layout/ev_home" app:recyclerviewClipToPadding="false" android:layout_width="match_pairent" android:layout_height="match_pairent"></com.mairshalchen.ultimaterecyclerview.UltimateRecyclerView> </android.support.v4.widget.SwipeRefreshLayout> 

    Mova o app:layout_scrollFlags="scroll|enterAlways" da bairra de ferramentas paira o Framelayout. Desculpe por estair atrasado.

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.