splashScreen中的ImageView显示模糊

问题描述 投票:1回答:1

我正在为我的应用程序实现启动画面,当它运行时,启动画面包含模糊的图像,而不是应该如何。

<ImageView
    android:id="@+id/imageView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:scaleType="centerCrop"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.0"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintVertical_bias="0.0"
    tools:srcCompat="@mipmap/ic_launcher_foreground" />

enter image description here

我必须选择哪一个?或者我如何添加图像?因为图像是2700x2700px ...我将imageView作为centerCrop。

android uiimageview android-xml splash-screen
1个回答
0
投票

将图像尺寸缩小75% - (675 x 675)。对于手机布局,这已经足够了。您可以使用此在线工具更改图像的尺寸而不更改纵横比:

https://www.iloveimg.com/resize-image/resize-png

© www.soinside.com 2019 - 2024. All rights reserved.