如何实现垂直滑动的动作条(如在grofers应用程序) [英] How to implement vertical sliding actionbar(like in the grofers app)

查看:151
本文介绍了如何实现垂直滑动的动作条(如在grofers应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要实现的布局中,操作栏是一个图像的下方。而且,在滑动屏幕时,在动作条也应该向上移动,与图像一起。然后,操作栏应到屏幕的最高点和停止。

I want to implement a layout in which the action bar is below an image. And, on sliding the screen up, the actionbar should also move up, along with the image. The action bar should then go to the topmost point of the screen and stop.

这是在许多应用程序如grofers应用程序实现的。

This is implemented in many apps like the grofers app.

我不介意使用相同的外部库。

I don't mind using an external library for the same.

感谢。

推荐答案

通过这个真棒演示样品code 使用 Android设计支持库 协调员布局

Go Through this awesome Demo Sample Code using Android Design Support Library Coordinator Layout.

这篇关于如何实现垂直滑动的动作条(如在grofers应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆