SplashScreen with Vector stretched full screen

前端 未结 6 2236
执念已碎
执念已碎 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 00:50

    For full screen splash try to use:

    android:gravity="fill_horizontal|fill_vertical"
    

    If not resolve maybe the solution is create separated images for each resolution size.


    Most common resolutions:

    • Small = 240 x 320px (ldpi)
    • Medium = 320 x 480px (mdpi)
    • Large = 480 x 800px (hdpi)
    • xLarge = 640 x 960px (xhdpi)

    Portrait Format:

    • ldpi = 240 x 360px (0.75 x mdpi)
    • mdpi = 320 x 480px (base density)
    • hdpi = 480 x 720px (1.5 x mdpi)
    • xhdpi = 640 x 960px (2 x mdpi)
    • xxhdpi = 960 x 1440px (3 x mdpi)
    • xxxhdpi = 1080 x 1920px (4 x mdpi)

    Landscape Format (inverted portrait format):

    • ldpi = 360 x 240px (0.75 x mdpi)
    • mdpi = 480 x 320px (base density)
    • hdpi = 720 x 480px (1.5 x mdpi)
    • xhdpi = 960 x 640px (2 x mdpi)
    • xxhdpi = 1440 x 960px (3 x mdpi)
    • xxxhdpi = 1920 x 1080px (4 x mdpi)

    More about you can find here:

    1. https://design.google.com/devices/

    2. Android splash screen image sizes to fit all devices

    3. http://vinsol.com/blog/2014/11/20/tips-for-designers-from-a-developer/

提交回复
热议问题