Open xiandanin opened 5 years ago
http://dyhdyh.com/posts/android-splash-compat.html
https://github.com/dengyuhan/SplashCompatSample 前言做过Splash的都知道,一般的做法是在style中设置windowBackground为启动图,来避免冷启动时的黑屏,但是如果放一张尺寸的图在某些屏幕上就会出现拉伸,并且windowBackground还不能centerCrop,就算通过资源限定符也不能完美的适配。 效果左边是小米5S(1080x
http://dyhdyh.com/posts/android-splash-compat.html
https://github.com/dengyuhan/SplashCompatSample 前言做过Splash的都知道,一般的做法是在style中设置windowBackground为启动图,来避免冷启动时的黑屏,但是如果放一张尺寸的图在某些屏幕上就会出现拉伸,并且windowBackground还不能centerCrop,就算通过资源限定符也不能完美的适配。 效果左边是小米5S(1080x