android - 滚动/粘性 FAB float 操作按钮 android

标签 android scrollview sticky floating-action-button

我需要向滚动页面添加一个 FAB,但是,我需要在屏幕上的特定点让 FAB 继续并向上滚动,因为它与底部的内容无关页面。

我认为它的工作方式与粘性 View 相反,粘性 View 一直滚动直到它到达顶部,然后停留在那里,它会停留在底部直到它向上滚动和关闭的某个点屏幕。

我找不到这个谷歌搜索,我想我将不得不以某种方式逆转那里的许多粘性库之一,但对于自定义 View 经验有限的人来说,它们非常令人生畏。

最佳答案

看起来你的效果是反对Google's guidelines的:

the floating action button should not exit the screen in the same direction as the screen exits ... it incorrectly implies that the floating action button is at the same the z-level as the content, rather than at the level of the primary UI elements at the root level.

关于android - 滚动/粘性 FAB float 操作按钮 android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29350775/

相关文章:

android - 如何在没有用户确认的情况下使用强制 adb 进行备份?

带有ScrollView的Android旋转动画

android - ScrollView : Change the edge effect color with Holo

javascript - 使用路径点从顶部窗口偏移粘性 div

java - 获取 Facebook 用户数据

java - 设备上安装的应用程序未显示在应用程序菜单中

android - 如果 View 在 ScrollView 的屏幕上不可见,则无法找到。总是返回真

jquery - 如何将元素固定到距屏幕边缘可变距离的页面?

css - Wordpress如何制作粘性导航菜单/使菜单始终粘在顶部?

java - 如何使用 Service 或 MediaPlayer 在我的应用程序中播放背景音乐?