材料设计 - 在列表视图滚动浮动操作按钮隐藏(比如在谷歌+) [英] Material Design - floating action button hiding in listview scroll (like in google+)

查看:233
本文介绍了材料设计 - 在列表视图滚动浮动操作按钮隐藏(比如在谷歌+)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好怎么样在Google+应用向下滚动,当我躲在一个浮动的操作按钮?

Hello how do I hide a floating action button when scrolling down like in the Google+ app?

我见过的检测在ListView滚动各种方式,但我到目前为止看到只检测子单元的渲染,因为他们移动/关闭屏幕上的内容。这不是Google+的是在做的事,这将不适合我,因为我有一个大标题单元格,这是非常明显的漂浮动作按钮不会消失速度不够快。

I have seen various ways of detecting scrolling in a listview, but what I've seen so far is only detecting the rendering of child cells as they move on/off screen. This isn't what Google+ is doing at all and this won't work for me because I have a large header cell and it is painfully obvious that the floating action button does not disappear fast enough.

任何有识之士AP preciated

Any insight appreciated

推荐答案

本项目有几个例子隐藏和显示FAB按钮,动作条和标签。

this project has couple of example of hiding and showing fab button, actionbar and tabs.

<一个href=\"https://github.com/lawloretienne/QuickReturn\">https://github.com/lawloretienne/QuickReturn

这篇关于材料设计 - 在列表视图滚动浮动操作按钮隐藏(比如在谷歌+)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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