且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

不同设备上的动画速度

更新时间:2023-01-03 20:34:33

我最终决定使用display.metrics来获取设备的像素密度。然后,我通过除以密度值来调整平移运动速度。

I finally decided to use display.metrics to get the pixel density of the devices. Then I adjust the translation motion speed by dividing by the density value.

仍然想知道这是否是控制各种设备上动画速度的最先进方法? ??

Still wondering if this is the "state of the art" way of controlling animation speed on various devices???