SplashScreen with Vector stretched full screen

前端 未结 6 2238
执念已碎
执念已碎 2020-12-08 00:21

I did my splash screen with this tutorial and it works great:

  • https://www.bignerdranch.com/blog/splash-screens-the-right-way/

Basically I set u

6条回答
  •  难免孤独
    2020-12-08 01:13

    I do not think this is possible to do with vectors, for devices < API 23, since it is not possible to set the attributes android:height and android:width on the drawable.

    To implement my splash screen with a centered icon, I had to export the vector of my logo to .png's for each screen size, and embed a bitmap within the layer-list:

    
    
        
    
        
            
        
    
    
    

    Ideally I would not like to have any bitmap images at all in my resources, but at least the splash screen is the only place where I have had to use bitmaps.

提交回复
热议问题