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.
我正在使用 Lottie 照片屏幕改编。下面的动画分为两层。上层是飘落的花瓣,下层是全屏星空照片。
问题是底层图像无法以 480x800 分辨率填满全屏。在 720x1080 和 1080x1920 下没有问题。
更奇怪的是,落下的花瓣可以全屏落下。
如何解决这个问题?
1080x1920
720x1080
480x800
将比例类型设置为 imageview
android:adjustViewBounds="true" android:scaleType="centerCrop"