当使用 ObjectAnimator 移动项目时,由于设备之间的密度差异,我会得到不同的结果。我将如何使这些与密度无关?
ObjectAnimator anim1 = ObjectAnimator.ofFloat(clockLayout, "translationY", 0f, -80f);
anim1.setDuration(300);
当使用 ObjectAnimator 移动项目时,由于设备之间的密度差异,我会得到不同的结果。我将如何使这些与密度无关?
ObjectAnimator anim1 = ObjectAnimator.ofFloat(clockLayout, "translationY", 0f, -80f);
anim1.setDuration(300);