{"id":45522,"date":"2021-11-07T21:00:53","date_gmt":"2021-11-07T12:00:53","guid":{"rendered":"https:\/\/www.charlezz.com\/?p=45522"},"modified":"2021-11-12T16:32:52","modified_gmt":"2021-11-12T07:32:52","slug":"layouts-in-jepack-compose-%ec%83%88%eb%a1%9c%ec%9a%b4-%ec%bb%b4%ed%8f%ac%ec%a6%88-%ed%94%84%eb%a1%9c%ec%a0%9d%ed%8a%b8-%ec%8b%9c%ec%9e%91%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/charlezz.com\/?p=45522","title":{"rendered":"Layouts in Jepack Compose &#8211; \uc0c8\ub85c\uc6b4 \ucef4\ud3ec\uc988 \ud504\ub85c\uc81d\ud2b8 \uc2dc\uc791\ud558\uae30"},"content":{"rendered":"\n<p>\uc0c8 Compose \ud504\ub85c\uc81d\ud2b8\ub97c \uc2dc\uc791\ud558\ub824\uba74 Android Studio Arctic Fox\ub97c \uc5f4\uace0 \uc544\ub798\uc640 \uac19\uc774 \uc0c8 Android Studio \ud504\ub85c\uc81d\ud2b8 \uc2dc\uc791\uc744 \uc120\ud0dd\ud55c\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/developer.android.com\/codelabs\/jetpack-compose-layouts\/img\/dabf04f3abbdc28a.png?hl=ko\" alt=\"dabf04f3abbdc28a.png\"\/><\/figure>\n\n\n\n<p>\uc774 \ud654\uba74\uc774 \ub098\ud0c0\ub098\uc9c0 \uc54a\ub294\ub2e4\uba74, <strong>File<\/strong> > <strong>New<\/strong> > <strong>New Project<\/strong>\ub85c \uac00\uc790.<\/p>\n\n\n\n<p>\uc0c8\ub85c\uc6b4 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud560 \ub54c, <strong>Empty Compose Activity<\/strong>\ub97c \uc0ac\uc6a9\uac00\ub2a5\ud55c \ud15c\ud50c\ub9bf\uc73c\ub85c \ubd80\ud130 \uc120\ud0dd\ud55c\ub2e4.<\/p>\n\n\n\n<p><strong>Next<\/strong>\ub97c \ud074\ub9ad\ud558\uace0 \ud3c9\uc18c\uc640 \uac19\uc774 \ud504\ub85c\uc81d\ud2b8\ub97c \uad6c\uc131\ud55c\ub2e4. minimumSdkVersion\uc744 \ucef4\ud3ec\uc988\uac00 \uc9c0\uc6d0\ud558\ub294 \ucd5c\uc18c API\ub808\ubca8\uc778 21 \uc774\uc0c1\uc774 \ub418\ub3c4\ub85d \uc120\ud0dd\ud55c\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Note:<\/strong>\u00a0Compose\ub97c \uc124\uc815\ud558\uae30 \uc704\ud574 \ub354 \ub9ce\uc740 \uc815\ubcf4\uac00 \ud544\uc694\ud558\ub2e4\uba74 <a href=\"https:\/\/developer.android.com\/jetpack\/compose\/setup?hl=ko\">\uacf5\uc2dd \ubb38\uc11c<\/a>\ub97c \ud655\uc778\ud558\ub3c4\ub85d \ud558\uc790.<\/p><\/blockquote>\n\n\n\n<p>Empty Compose Activity \ud15c\ud50c\ub9bf\uc744 \uc120\ud0dd\ud558\uba74, \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \ub2e4\uc74c \ucf54\ub4dc\uac00 \uc0dd\uc131\ub41c\ub2e4.<\/p>\n\n\n\n<ul><li>\ud504\ub85c\uc81d\ud2b8\ub294 \uc774\ubbf8 \ucef4\ud3ec\uc988\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ub418\uc5c8\ub2e4.<\/li><li>AndroidManifest.xml\ud30c\uc77c\uc774 \uc0dd\uc131\ub418\uc5c8\ub2e4.<\/li><li>app\/build.gradle \ud30c\uc77c\uc5d0 \ucef4\ud3ec\uc988 \uc758\uc874\uc131\uc774 \ucd94\uac00 \ub418\uace0 \ucef4\ud3ec\uc988\uac00 \uc548\ub4dc\ub85c\uc774\ub4dc \uc2a4\ud29c\ub514\uc624\uc5d0\uc11c \ub3d9\uc791\ud560 \uc218 \uc788\ub3c4\ub85d buildFeature { compose true } \ud50c\ub808\uadf8\ub97c \ud65c\uc131\ud654 \ud55c\ub2e4. \ub610\ud55c composeOptions \ube14\ub85d\uc5d0 kotlinCompilerVersion\uc774 \uc5c6\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>android {<br>&nbsp; &nbsp; ...<br>&nbsp; &nbsp; kotlinOptions {<br>&nbsp; &nbsp; &nbsp; &nbsp; jvmTarget = '1.8'<br>&nbsp; &nbsp; &nbsp; &nbsp; useIR = true<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; buildFeatures {<br>&nbsp; &nbsp; &nbsp; &nbsp; compose true<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; composeOptions {<br>&nbsp; &nbsp; &nbsp; &nbsp; kotlinCompilerExtensionVersion compose_version<br>&nbsp; &nbsp; &nbsp; &nbsp; \/\/ Remove kotlinCompilerVersion from here <br>&nbsp; &nbsp; }<br>}<br><br>dependencies {<br>&nbsp; &nbsp; ...<br>&nbsp; &nbsp; implementation \"androidx.compose.ui:ui:$compose_version\"<br>&nbsp; &nbsp; implementation 'androidx.activity:activity-compose:1.3.0'<br>&nbsp; &nbsp; implementation \"androidx.constraintlayout:constraintlayout-compose:1.0.0-beta01\"<br>&nbsp; &nbsp; implementation \"androidx.compose.material:material:$compose_version\"<br>&nbsp; &nbsp; implementation \"androidx.compose.ui:ui-tooling:$compose_version\"<br>&nbsp; &nbsp; ...<br>}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc0c8 Compose \ud504\ub85c\uc81d\ud2b8\ub97c \uc2dc\uc791\ud558\ub824\uba74 Android Studio Arctic Fox\ub97c \uc5f4\uace0 \uc544\ub798\uc640 \uac19\uc774 \uc0c8 Android Studio \ud504\ub85c\uc81d\ud2b8 \uc2dc\uc791\uc744 \uc120\ud0dd\ud55c\ub2e4. \uc774 \ud654\uba74\uc774 \ub098\ud0c0\ub098\uc9c0 \uc54a\ub294\ub2e4\uba74, File > New > New Project\ub85c \uac00\uc790. \uc0c8\ub85c\uc6b4 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud560 \ub54c, Empty Compose Activity\ub97c \uc0ac\uc6a9\uac00\ub2a5\ud55c \ud15c\ud50c\ub9bf\uc73c\ub85c \ubd80\ud130 \uc120\ud0dd\ud55c\ub2e4. Next\ub97c \ud074\ub9ad\ud558\uace0 \ud3c9\uc18c\uc640 \uac19\uc774 \ud504\ub85c\uc81d\ud2b8\ub97c \uad6c\uc131\ud55c\ub2e4. minimumSdkVersion\uc744 \ucef4\ud3ec\uc988\uac00 \uc9c0\uc6d0\ud558\ub294 \ucd5c\uc18c API\ub808\ubca8\uc778 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[38],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/45522"}],"collection":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45522"}],"version-history":[{"count":1,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/45522\/revisions"}],"predecessor-version":[{"id":45523,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/45522\/revisions\/45523"}],"wp:attachment":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}