Ich habe versucht, eine Menge Sachen hinzuzufügen und abzuziehen, aber immer wenn mein Splash-Screen gestartet wird, gibt es immer eine runde Ecke oder eine Art von Höhe im Bild.Mein Splash-Screen-Bild bekommt immer ein paar abgerundete weiße Ecken
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#3c3734"
tools:context="com.example.akshay.athleticgo.SplashScreen">
<ImageView
android:id="@+id/splash_logo"
android:adjustViewBounds="true"
android:elevation="0dp"
android:fitsSystemWindows="true"
android:background="#3c3734"
android:src="@mipmap/ath_splash"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
</FrameLayout>
und das ist mein Stil
<style name="Theme.Transparent" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsTranslucent">true</item>
</style>
Wie Sie Bild von Mipmap verwenden und Mipmap ist nur für Launcher-Symbole. Die meisten Fälle Launcher-Symbol hat Gradientenrahmen/Schatten. Ich denke, dein Bild hat diese Gradientengrenze. Überprüfe zuerst dein Bild. – FAT
Nein, das Bild ist ein einfaches PNG-Bild ohne Rand. Wenn Mipamp nur für Symbole ist, wo sollte ich dann das Bild für den Begrüßungsbildschirm platzieren? –
Im aufklappbaren Ordner. Pfad: /res/drawable/ath_splash.png – FAT