Displaying logo for few seconds at application start

后端 未结 7 1262
粉色の甜心
粉色の甜心 2021-02-08 07:13

I want to display a logo for few seconds before application starts and menu is visible. I want also to use some when it disappears. Should I create a new activity? Can I set it

7条回答
  •  一整个雨季
    2021-02-08 07:33

    You can use splash logo at startup using styles-only method. Unfortunately it works only starting form API 23. But you don't need manage splash Activity.

        
    

    res/drawable-v23/logo_startup.xml:

    
    
        
    
        
             //use PNG file here, not vector
        
    
    
    

    res/drawable/logo_startup.xml:

    
    
        
    
    
    

提交回复
热议问题