我想将TabLayout
固定在类似滚动的Instagram上方。 NestedScrollView
中有没有办法做到这一点?
NestedScrollView
-- ConstraintLayout
---- OtherViews
---- TabLayout
---- ViewPager
https://i.imgur.com/G5QcqaW.png
https://gist.github.com/buraktabn/c73cd04bed6a223471834756d6f32773
您能做点什么吗:
ConstraintLayout
-- OtherViews
-- TabLayout
-- NestedScrollView
---- ViewPager
那样,ViewPager的内容将滚动吗?仅供参考。CoordinatorLayout
和CollapsingToolbarLayout
(https://material.io/develop/android/components/collapsing-toolbar-layout/)可能也值得一看,这将允许用户在向上滚动时重新获得部分屏幕。