将整个布局(带有滚动视图)移动到另一个布局上
Move entire layout(with scrollview) over another layout
我想实现图像上显示的行为。第一个布局固定在顶部,当用户想要滚动时,第二个布局(内部有滚动视图)应该首先移动。我尝试使用 Collapsing tollbar 布局,但这并不是我想要的。我阅读了有关我无法在另一个滚动视图中使用 srollview 的文章,但我不确定滚动视图是否是我需要的。
您需要使用协调器布局。在这里查看:
http://saulmm.github.io/mastering-coordinator/
这个库做我想做的事https://github.com/umano/AndroidSlidingUpPanel
谢谢
我想实现图像上显示的行为。第一个布局固定在顶部,当用户想要滚动时,第二个布局(内部有滚动视图)应该首先移动。我尝试使用 Collapsing tollbar 布局,但这并不是我想要的。我阅读了有关我无法在另一个滚动视图中使用 srollview 的文章,但我不确定滚动视图是否是我需要的。
您需要使用协调器布局。在这里查看: http://saulmm.github.io/mastering-coordinator/
这个库做我想做的事https://github.com/umano/AndroidSlidingUpPanel
谢谢