{"id":156,"date":"2025-10-09T09:13:37","date_gmt":"2025-10-09T00:13:37","guid":{"rendered":"https:\/\/devserver.kr\/blog\/?p=156"},"modified":"2025-10-09T09:13:37","modified_gmt":"2025-10-09T00:13:37","slug":"android-launch-screen-%ec%98%88%ec%a0%84-%ea%b5%ac%ed%98%84-%eb%b0%a9%ec%8b%9d","status":"publish","type":"post","link":"https:\/\/devserver.kr\/blog\/android\/android-launch-screen-%ec%98%88%ec%a0%84-%ea%b5%ac%ed%98%84-%eb%b0%a9%ec%8b%9d\/","title":{"rendered":"Android Launch screen \uc608\uc804 \uad6c\ud604 \ubc29\uc2dd"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><h1>\ud504\ub85c\uc81d\ud2b8 \uc0dd\uc131\ubd80\ud130 \ub860\uce58\uc2a4\ud06c\ub9b0 \uad6c\ud604\uae4c\uc9c0<\/h1>\n<p>\uc548\ub4dc\ub85c\uc774\ub4dc \uc2a4\ud29c\ub514\uc624 &gt; \uc0c8 \ud504\ub85c\uc81d\ud2b8\nEmpty Activity \ub85c \ud504\ub85c\uc81d\ud2b8 \uc0dd\uc131\n\uc548\ub4dc\ub85c\uc774\ub4dc \ubc84\uc804\uc740 \uc810\uc720\uc728 \ud655\uc778\ud558\uace0 90% \uadfc\ucc98 \uc62c \uc815\ub3c4\uc758 \ubc84\uc804\uc744 \uc120\ud0dd\n5 \ub864\ub9ac\ud31d API 21 \uc120\ud0dd!<\/p>\n<h2>\ub860\uce58\ud654\uba74\uc758 \uad6c\uc131<\/h2>\n<p>\ubc30\uacbd\uc774\ubbf8\uc9c0 + \ub85c\uace0\uc774\ubbf8\uc9c0\nlaunch_screen_bg.png\nlaunch_screen_logo.png\n\uc774\ubbf8\uc9c0 \uc0ac\uc774\uc988\ub294 \uc801\ub2f9\ud55c \uace0\ud574\uc0c1\ub3c4\ub85c \uc900\ube44<\/p>\n<p>\uc0c8 Empty Activity\ub97c \ud558\ub098 \ucd94\uac00\ud55c\ub2e4.\n\uc774\ub984\uc740 LaunchScreenActivity\nGenerate a Layout File \uc740 \uccb4\ud06c\ud558\uc9c0 \uc54a\ub294\ub2e4. Layout\uc740 \ub9cc\ub4e4\uc9c0 \uc54a\ub3c4\ub85d \ud55c\ub2e4.\nLauncher Activity \ub294 \uccb4\ud06c!<\/p>\n<p>AndroidManifest.xml\uc5d0 \uac00\uc11c\n\uc6d0\ub798 \uc788\ub358 MainActivity\uc758 intent filter\ub97c \uc0ad\uc81c\ud55c\ub2e4. \uc774\uc81c \ucc98\uc74c \uc2dc\uc791\uc744 LaunchScreenActivity\uc5d0 \ub118\uaca8\uc8fc\ub294\uac70\ub2e4.<\/p>\n<p>LaunchScreenActivity\ub97c \ub860\uce58 \uc561\ud2f0\ube44\ud2f0\ub85c \ub9cc\ub4e4\uc5b4\uc918\uc57c\ud55c\ub2e4. \uc774\ud6c4 \ub9cc\ub4e4 \uc2a4\ud0c0\uc77c\ub85c \ubbf8\ub9ac \uc9c0\uc815\ud574\ub454\ub2e4.<\/p>\n<pre><code class=\"language-xml\">&lt;activity android:name=&quot;.LauncherScreenActivity&quot;\n            android:label=&quot; &quot;\n            android:theme=&quot;@style\/LaunchScreenTheme&quot;&gt;\n            &lt;intent-filter&gt;\n                &lt;action android:name=&quot;android.intent.action.MAIN&quot; \/&gt;\n\n                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; \/&gt;\n            &lt;\/intent-filter&gt;\n        &lt;\/activity&gt;\n\n<\/code><\/pre>\n<p>LaunchScreenActivity.kt \uc5d0 \uac00\uc11c<\/p>\n<p>onCreate() \uc548\uc5d0<\/p>\n<pre><code class=\"language-kotlin\">val intent = Intent(this, MainActivity::class.java)\nstartActivity(intent)\nfinish()\n<\/code><\/pre>\n<p>MainActivity\uac00 \ub85c\ub529\uc774 \ub418\uba74 \ubc14\ub85c \ub118\uc5b4\uac00\ub3c4\ub85d \uc791\uc131\ud55c\ub2e4.<\/p>\n<p>res\/values\/themes.xml \uc5d0 \uac00\uc11c<\/p>\n<pre><code class=\"language-xml\">&lt;!-- For Launch Screen --&gt;\n    &lt;style name=&quot;LaunchScreenTheme&quot; parent=&quot;Theme.AppCompat.NoActionBar&quot;&gt;\n        &lt;item name=&quot;android:background&quot;&gt;@drawable\/launch_screen_background&lt;\/item&gt;\n        &lt;item name=&quot;android:windowFullscreen&quot;&gt;true&lt;\/item&gt;\n        &lt;item name=&quot;windowNoTitle&quot;&gt;true&lt;\/item&gt;\n    &lt;\/style&gt;\n\n<\/code><\/pre>\n<p>LaunchScreen \uc744 \uc704\ud55c \uc2a4\ud0c0\uc77c\uc744 \ub9cc\ub4e0\ub2e4.<\/p>\n<p>\ub860\uce58\uc2a4\ud06c\ub9b0\uc740 \ud604\uc7ac layout \uc774 \uc5c6\ub294\ub370, \uc2a4\ud0c0\uc77c\uc5d0\uc11c \ubc30\uacbd\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p>drawable \uc5d0 launch_screen_background.xml \uc744 \ub9cc\ub4e0\ub2e4. \uc704\uc5d0 \uc2a4\ud0c0\uc77c\uc5d0 \uc124\uc815\ub41c drawable \ub418\uc2dc\uaca0\ub2e4.<\/p>\n<pre><code class=\"language-xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n&lt;layer-list xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;&gt;\n    &lt;item\n        android:drawable=&quot;@drawable\/launch_screen_background_gradient&quot;\n        android:top=&quot;0dp&quot;\n        android:bottom=&quot;0dp&quot;\n        android:left=&quot;0dp&quot;\n        android:right=&quot;0dp&quot; \/&gt;\n\n    &lt;item\n        android:drawable=&quot;@drawable\/launch_screen_logo&quot;\n        android:width=&quot;167dp&quot;\n        android:height=&quot;76dp&quot;\n        android:gravity=&quot;center&quot;&gt;\n    &lt;\/item&gt;\n&lt;\/layer-list&gt;\n<\/code><\/pre>\n<p>\uccab\ubc88\uc9f8 \uc544\uc774\ud15c\uc778 launch_screen_background_gradient \ub294 \ubc30\uacbd\uc5d0 \uadf8\ub808\ub514\uc5b8\ud2b8\ub97c \ub123\uae30\uc704\ud574 \ub9cc\ub4e4\uc5b4 \ub454 drawable xml\uc774\ub2e4.\n\ubcf4\ud1b5\uc758 \uc774\ubbf8\uc9c0 \ud30c\uc77c\uc744 \uc0ac\uc6a9\ud574\uc11c \ubc30\uacbd\uc744 \uac00\ub4dd \ucc44\uc6b8 \uc218\ub3c4 \uc788\ub2e4.\n\ub450\ubc88\uc9f8 \uc544\uc774\ud15c launch_screen_logo\uac00 \ud654\uba74 \uac00\uc6b4\ub370\uc5d0 \ubcf4\uc5ec\uc9c0\uac8c\ub41c\ub2e4.<\/p>\n<h3>\uadf8\ub808\ub514\uc5b8\ud2b8 \ubc29\ubc95<\/h3>\n<pre><code class=\"language-xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n&lt;shape xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;&gt;\n    &lt;gradient\n        android:type=&quot;linear&quot;\n        android:angle=&quot;90&quot;\n        android:startColor=&quot;#ff9300&quot;\n        android:endColor=&quot;#ff0900&quot; \/&gt;\n&lt;\/shape&gt;\n<\/code><\/pre>\n<p>\uc5ec\uae30\uae4c\uc9c0\ud558\uba74 \ub808\uc774\uc544\uc6c3 \uc5c6\uc774 \uc2a4\ud0c0\uc77c \uc124\uc815\ub9cc\uc73c\ub85c \ub860\uce58\ud654\uba74\uc744 \uad6c\ud604\ud560 \uc218 \uc788\ub2e4.\n\ud558\uc9c0\ub9cc, \uc0c1\ub2e8\uc758 \uc0c1\ud0dc\ubc14\uac00 \uadf8\ub300\ub85c \ubcf4\uc774\ub294 \uae30\uc885\uc774 \uc788\uc744 \uc218\ub3c4 \uc788\ub2e4\uace0 \ud558\ub2c8, \ucf54\ub4dc\ub85c \uac10\ucd94\ub294 \uc791\uc5c5\uc744 \ud55c\ub2e4.<\/p>\n<p>LaunchScreenActivity.kt &gt; onCreate() \uc5d0 \ub123\uc5b4\uc900\ub2e4.<\/p>\n<pre><code class=\"language-kotlin\">\/\/ Hide the status bar.\n        window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_FULLSCREEN\n        \/\/ Remember that you should never show the action bar if the\n        \/\/ status bar is hidden, so hide that too if necessary.\n        actionBar?.hide()\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-android"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":1,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}