Android splash screen for both landscape and portrait orientation

ぐ巨炮叔叔 提交于 2019-12-04 16:37:01
Shabbir Dhangot

For having splash screen for landscape screen. follow below steps.

  1. Create folder layout-land under res folder.
  2. In that folder, copy splash_screen.xml file.
  3. Change src resource portrait splash image to your landscape splash image

Appropriate file will be loaded at run-time automatically. no need to change in java code

i think problem with you manifest file. and please describe your main problem.

<activity
        android:name=".SplashActivity"
        android:configChanges="keyboard|orientation|screenSize"
        android:label="@string/app_name"
        android:theme="@style/AppLoginTheme"
        android:windowSoftInputMode="adjustResize" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!