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.
我正在尝试在android中制作一个相当复杂的动画。我希望能够有一个背景图像并有一个从左侧进入的滑动抽屉,但我不希望抽屉位于背景图像之上。相反,我想挤压背景,以便您可以同时看到屏幕上的抽屉和整个背景图像(虽然被挤压)。
我已经研究了几个动画,但我无法想出一个可以做到这一点的组合。
想法?
使用右侧的锚点缩放背景图像。然后将抽屉从左侧(不可见区域)平移到右侧(可见区域)