将整个布局(使用scrollview)移动到另一个布局上

时间:2016-01-18 09:59:51

标签: android android-layout scrollview

我希望实现图像上显示的行为。第一个布局固定在顶部,当用户想要滚动时,第二个布局(内部滚动视图)应首先移动。我尝试使用折叠收费栏布局,但它不是我想要的。我读过有关我不能在另一个scrollview中使用srollview的文章,但我不确定scrollview是否是我需要的。

滚动前的

http://postimg.org/image/6hsrmetyt/

滚动后的

http://postimg.org/image/po5yplagl/

2 个答案:

答案 0 :(得分:0)

您需要使用协调器布局。看看这里: http://saulmm.github.io/mastering-coordinator/

答案 1 :(得分:0)

这个库做我想要的https://github.com/umano/AndroidSlidingUpPanel

谢谢