Android 如何为不同的屏幕大小制作动画?
我需要制作滑入和滑出动画来更改片段。我的动画滑出:Android 如何为不同的屏幕大小制作动画?,android,animation,screen,screen-resolution,objectanimator,Android,Animation,Screen,Screen Resolution,Objectanimator,我需要制作滑入和滑出动画来更改片段。我的动画滑出: <?xml version="1.0" encoding="utf-8"?> <objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" android:duration="1000" android:propertyName="y" android:valueFrom="0" android:va
<?xml version="1.0" encoding="utf-8"?>
<objectAnimator
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:propertyName="y"
android:valueFrom="0"
android:valueTo="801"
android:valueType="floatType" />
在高分辨率设备上离开屏幕前,碎片消失。是否有可能为不同的屏幕大小制作动画
提前谢谢。。但是,它不适用于我,必须手动使用
动画制作动画。它解决了我的问题。谢谢。只是出于好奇,你觉得YFraction方法有用吗?是的。它对我有用。