i have 2 activities using appbarlayout
toolbar
, tablayout
support library 22.
the layout of both pretty similar: toolbar
@ top, below tablayout
, below viewpager
containing 3 fragment
s.
the first activity's fragment
has recyclerview
, second activity's fragment
using listview
instead.
the scrollable toolbar
example https://github.com/chrisbanes/cheesesquare working fine on first activity using recyclerview
, on listview
.
i've tried created custom listviewscrollbehavior
extends appbarlayout.scrollingviewbehavior
, far no luck. touchevent
s passed custom class horizontal scrolling, not when scrolling listview
(vertically).
any way use coordinatorlayout
listview
?
the solution make work use this:
if (build.version.sdk_int >= build.version_codes.lollipop) { listview.setnestedscrollingenabled(true); }
it work on lollipop.
Comments
Post a Comment