Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 CollapsingToolbarLayout 设置一个偏移侦听器,以便在用户向下或向上滚动时以同步方式为其他对象设置动画。有人有想法吗?
假设您的工具栏是 AppBarLayout 的直接子级,您可以在 AppBarLayout 上添加一个 AppBarLayout.OnOffsetChangedListener。