我需要向滚动页面添加一个 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/