I have two activities using AppBarLayout
with a Toolbar
and TabLayout
from support library 22.
The layout of both is pretty similar: A Toolbar
at the top, below it TabLayout
, below it a ViewPager
containing 3 Fragment
s.
The first activity's Fragment
has a RecyclerView
,
the second activity's Fragment
is using a ListView
instead.
The scrollable Toolbar
example from https://github.com/chrisbanes/cheesesquare is working fine on the first activity using the RecyclerView
, but on with the ListView
.
I've tried created a custom ListViewScrollBehavior
that extends AppBarLayout.ScrollingViewBehavior
, but so far no luck.
The TouchEvent
s are passed to the custom class only for horizontal scrolling, but not when scrolling the ListView
(vertically).
Any way to use a CoordinatorLayout
with ListView
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…