android:折叠工具栏在向上滚动时反弹

我有以下布局
<android.support.design.widget.CoordinatorLayout
    android:id="@+id/rootLayout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:cardview="http://schemas.android.com/apk/res-auto"
    android:background="@color/white"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.design.widget.AppBarLayout
        android:fitsSystemWindows="true"
        android:layout_width="match_parent"
        android:layout_height="250dp">

         <android.support.design.widget.CollapsingToolbarLayout
            android:id="@+id/collapsing_toolbar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:minHeight="?attr/actionBarSize"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            android:fitsSystemWindows="true">

                <RelativeLayout 
                    xmlns:android="http://schemas.android.com/apk/res/android"
                    android:id="@+id/layout_toolbar"
                    android:layout_width="fill_parent"
                    android:orientation="vertical"
                    app:layout_collapseMode="parallax" 
                    android:layout_height="match_parent">

                        <com.android.volley.toolBox.VolleyImageView 
                            android:id="@+id/image_toolbar"
                            android:layout_width="fill_parent"
                            android:layout_height="match_parent"
                            android:scaleType="centerCrop"/>

                        .... some text views aligned over image...
                </RelativeLayout>

                <android.support.v7.widget.Toolbar
                    android:id="@+id/tool_bar"
                    android:layout_width="match_parent"
                    android:layout_height="?attr/actionBarSize"
                    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
                    app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />


        </android.support.design.widget.CollapsingToolbarLayout>
    </android.support.design.widget.AppBarLayout>

        <android.support.v7.widget.RecyclerView
        android:id="@+id/list_brands"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</android.support.design.widget.CoordinatorLayout>

当我在回收站视图中快速向上滚动时,折叠的工具栏无法顺利打开,但会跳出并关闭.我不知道什么是错的.我正在关注this文章.

任何帮助将受到高度赞赏.

解决方法

编辑:更新到v23设计和v23 recyclerview似乎修复了弹跳效果.您需要将compileSdkVersion更改为23,并将buildToolsversion更改为“23.0.0”.
请注意,如果您尝试从标题滚动,则v23会有其他错误,例如崩溃
at android.support.design.widget.CoordinatorLayout.onTouchEvent(CoordinatorLayout.java:449)

这个新bug的不同解决方在这里https://code.google.com/p/android/issues/detail?id=183166

这是谷歌跟踪的一个错误,他们说它应该在com.android.support.design v23中修复

https://code.google.com/p/android/issues/detail?id=175243

相关文章

Android 通过adb shell命令查看内存,CPU,启动时间,电量等...
Monkey Android app稳定性测试工具之Monkey使用教程 by:授客...
Android 常见adb命令 by:授客 QQ:1033553122 1、 查看所有已...
这篇“android轻量级无侵入式管理数据库自动升级组件怎么实现...
今天小编给大家分享一下Android实现自定义圆形进度条的常用方...
这篇文章主要讲解了“Android如何解决字符对齐问题”,文中的...