Splash Screen Image for landscape and Portrait using Theme

前端 未结 2 1881
猫巷女王i
猫巷女王i 2021-01-07 13:12

I have two full screens splash images, one is for landscape and another is for portrait mode.I want to implemented theses images as splash as per the orientation of the devi

2条回答
  •  猫巷女王i
    2021-01-07 14:03

    this is not answer of your Question But ..

    Spash screen is to wait till Activity Ready , Not to make user Wait more

    so what about trying Diffrent way to make Splash screen , it`s built in

    instead of white or black screen

    Go to youe Manifest

    change your app style like this

    
                
                    
    
                    
                
            
    

    where splashScreenTheme is

    
    

    Sure you can change parent and make new drawable "Splashscreen" this is mine

    
    
        
        
        
        
            
        
    
    

    Now your app Style changed you can reset it in your main Activity Oncreate

    @Override
        protected void onCreate(Bundle savedInstanceState) {
            setTheme(R.style.AppTheme222);
    }
    

提交回复
热议问题