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

android:折叠工具栏在向上滚动时反d,第1张

概述我有以下布局 <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/re 我有以下布局
<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似乎修复了d跳效果.您需要将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:折叠工具栏在向上滚动时反d全部内容,希望文章能够帮你解决android:折叠工具栏在向上滚动时反d所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1135615.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存