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.
我一直在努力寻找答案,但没有成功。如果 Activity 当前位于屏幕中间,我需要动画的 XML,并且它可以向上滑动并移出视图。
任何帮助将不胜感激!
如果我正确理解您想要的内容,我认为您应该尝试以下操作:
<?xml version="1.0" encoding="utf-8"?> <translate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="500" android:fromYDelta="0%" android:toYDelta="100%" />