๐ŸŽฏ Splash

  • Splash Screen์€ ์ด๋ฏธ์ง€๋‚˜ ๋กœ๊ณ , ํ˜„์žฌ ๋ฒ„์ „์˜ ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ํฌํ•จํ•œ ๊ทธ๋ž˜ํ”ฝ ์š”์†Œ๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ํ™”๋ฉด
  • Splash screens์€ ํ”„๋กœ๊ทธ๋žจ์ด ๋กœ๋”ฉ๋˜๊ณ  ์žˆ๋‹ค๋Š”๊ฑธ ์•Œ๋ ค์ฃผ๊ธฐ ์œ„ํ•ด์„œ ์‚ฌ์šฉ
  • Splash ํ™”๋ฉด์€ ํฌ๊ฒŒ ๋‘ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์œผ๋กœ ๋‚˜๋‰œ๋‹ค.
    • Splash Activity
      • ์ผ๋ฐ˜์ ์ธ Activity๋ฅผ ๊ตฌํ˜„ํ•˜์—ฌ Main Activity๋กœ Launcingํ•œ๋‹ค.
    • Splash Theme
      • Theme์„ ๊ตฌํ˜„ํ•˜์—ฌ ManifestํŒŒ์ผ์— ๋“ฑ๋กํ•˜์—ฌ ์‚ฌ์šฉํ•œ๋‹ค.

์Šคํ”Œ๋ž˜์‹œ ํ™”๋ฉด ์ž‘๋™ ๋ฐฉ์‹

  • ์‚ฌ์šฉ์ž๊ฐ€ ์•ฑ์„ ์‹คํ–‰ํ•  ๋•Œ ํฌ๊ฒŒ ์„ธ ๊ฐ€์ง€ ์ƒํƒœ๋กœ ์•ฑ์ด ๊ตฌ๋™๋œ๋‹ค.
    • cold-start
      • ์•ฑ ํ”„๋กœ์„ธ์Šค๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š์€ ์ƒํƒœ
    • warm-start
      • ํ™œ๋™์ด ๋งŒ๋“ค์–ด์ง€์ง€ ์•Š์€ ์ƒํƒœ
    • hot-start
      • ์ด๋ฏธ ํ™œ๋™๊นŒ์ง€ ๋งŒ๋“ค์–ด์ง€๊ณ , ๋ชจ๋“  ๋ฆฌ์†Œ์Šค๊ฐ€ ๋กœ๋“œ๋œ ์ƒํƒœ
  • ์Šคํ”Œ๋ž˜์‹œ ํ™”๋ฉด์€ ์•ž์„œ ํ”„๋กœ๊ทธ๋žจ์ด ๋กœ๋”ฉ๋˜๊ณ  ์žˆ์Œ์„ ์•Œ๋ฆด ๋•Œ ์ด์šฉ๋˜๋ฏ€๋กœ
    • ๊ธฐ๋ณธ์ ์œผ๋กœ hot-start ์ƒํƒœ์—์„œ ๋“ฑ์žฅํ•˜๊ฒŒ ๋œ๋‹ค.

Splash Theme ๊ตฌํ˜„

img

  • Android ๊ณต์‹๋ฌธ์„œ์—์„œ ๊ถŒ์žฅํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, Android 12๋ถ€ํ„ฐ ์ „์šฉ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ œ๊ณตํ•˜๋ฉฐ ์ ๊ทน ๊ถŒ์žฅํ•˜๊ณ  ์žˆ๋‹ค.
    • implementation("androidx.core:core-splashscreen:${Versions.Ui.Splash}")
  • Splash ํ™”๋ฉด์€ ํฌ๊ฒŒ ์œ„ 4๊ฐ€์ง€ + 1๊ฐ€์ง€ 5๊ฐ€์ง€๋กœ ๊ตฌ๋ถ„์ง€์–ด์„œ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค.
    1. App Icon
      • ๋ฉ”์ธ์œผ๋กœ ๋ณด์—ฌ์ค„ Icon
    2. Icon Background color
    3. Mask ์ฒ˜๋ฆฌ๋œ Adativt Icon
    4. Splash Scree Background color
    5. Branding Image
      • ์œ„ ์ด๋ฏธ์ง€์—๋Š” ๋‚˜์˜ค์ง€ ์•Š์•˜์œผ๋‚˜ ์ด๋ฅผ ์„ค์ •ํ•ด๋‘๋ฉด ์•„๋ž˜ ์ด๋ฏธ์ง€์˜ Google ๋งˆํฌ๋ฅผ ๋ณด์—ฌ์ค„ ์ˆ˜ ์žˆ๋‹ค.
        youtube

App Icon

  • Application์— ๋“ฑ๋ก๋œ Icon์„ ๋ณด์—ฌ์ค€๋‹ค.
  • ์„ค์ •
    • <item name="android:windowSplashScreenAnimatedIcon">@drawable/...</item>
  • ์ด๋Š” ์œ„์™€ ๊ฐ™์ด ์„ค์ •ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, Manifest ์„ค์ • ํŒŒ์ผ์— ๋“ฑ๋ก๋œ Icon์œผ๋กœ๋„ ๋ณด์—ฌ์ค„ ์ˆ˜ ์žˆ๋‹ค.
      <application
          android:allowBackup="true"
          android:icon="@mipmap/ic_flo_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_flo_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/Theme.FLO">
          ...
      </application>
  • ๋˜ํ•œ ์ด์™€ ๊ด€๋ จํ•œ Icon Size๋„ ๊ทœ์ •๋˜์–ด ์žˆ๋Š”๋ฐ, ์ด๋Š” ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜๊ธธ ๋ฐ”๋ž€๋‹ค.Icon Background Color
  • Icon ๋ฐฐ๊ฒฝ ์ƒ‰์ƒ์„ ์„ค์ •
  • Color ๊ฐ’๋งŒ ๋„ฃ์„ ์ˆ˜ ์žˆ๋‹ค.
  • ์„ค์ •
    • <item name="android:windowSplashScreenIconBackgroundColor">@color/...</item>

Splash Screen Background color

  • ๋ฐฐ๊ฒฝ ์ƒ‰์ƒ์„ ์„ค์ •
  • Color ๊ฐ’๋งŒ ๋„ฃ์„ ์ˆ˜ ์žˆ๋‹ค.
  • ์„ค์ •
    • <item name="android:windowSplashScreenBackground">@color/...</item>

Branding Image

  • ํ•˜๋‹จ ์ด๋ฏธ์ง€๋ฅผ ์‚ฝ์ž…ํ•  ์ˆ˜ ์žˆ๋‹ค.
  • ์„ค์ •
    • <item name="android:windowSplashScreenBrandingImage">@drawable/...</item>

'Android > Android ๊ธฐ์ดˆ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Thread  (0) 2022.04.19
Handler & Looper  (0) 2022.04.19
DrawerLayout  (0) 2022.04.19
TabLayout  (0) 2022.04.18
BottomNavigation  (0) 2022.04.18
  • ๋„ค์ด๋ฒ„ ๋ธ”๋Ÿฌ๊ทธ ๊ณต์œ ํ•˜๊ธฐ
  • ๋„ค์ด๋ฒ„ ๋ฐด๋“œ์— ๊ณต์œ ํ•˜๊ธฐ
  • ํŽ˜์ด์Šค๋ถ ๊ณต์œ ํ•˜๊ธฐ
  • ์นด์นด์˜ค์Šคํ† ๋ฆฌ ๊ณต์œ ํ•˜๊ธฐ