Java 启动屏幕:在左上角显示奇怪的图像
//喷溅活动Java 启动屏幕:在左上角显示奇怪的图像,java,android,xml,splash-screen,Java,Android,Xml,Splash Screen,//喷溅活动 onCreate setContentView(R.layout.activity_splash); startActivity(new Intent(SplashActivity.this, HomeActivity.class)); //activity_splash.xml <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wi
onCreate
setContentView(R.layout.activity_splash);
startActivity(new Intent(SplashActivity.this, HomeActivity.class));
//activity_splash.xml
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"/>
//Android清单。xml
<activity
android:name=".common.activity.SplashActivity"
android:label="@string/app_name"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
//飞溅主题
<style name="SplashTheme" parent="TransparentStatusbar">
<item name="android:windowBackground">@drawable/splash_drawable</item>
</style>
@可拉拔/飞溅\可拉拔
//splash_drawable.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item
android:drawable="@color/edit_text_background"/> //color code : #20FFFFFF
<item>
<bitmap
android:gravity="center"
android:src="@drawable/logo"/>
</item>
</layer-list>
//颜色代码:#20FFFFFF
- 为什么我会在左上角看到奇怪的图像李>
- 提前谢谢