{"id":46745,"date":"2025-10-18T14:10:44","date_gmt":"2025-10-18T05:10:44","guid":{"rendered":"https:\/\/charlezz.com\/?p=46745"},"modified":"2025-10-18T14:10:48","modified_gmt":"2025-10-18T05:10:48","slug":"fillmax%ec%99%80-fillparentmax%ec%9d%98-%ec%b0%a8%ec%9d%b4%ec%a0%90","status":"publish","type":"post","link":"https:\/\/charlezz.com\/?p=46745","title":{"rendered":"fillMax*()\uc640 fillParentMax*()\uc758 \ucc28\uc774\uc810"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">fillMaxWidth()<\/h2>\n\n\n\n<p>fillMaxWidth()(\ub610\ub294 fillMaxHeight)\ub294 \ud604\uc7ac \ucef4\ud3ec\uc800\ube14\uc758 \uce21\uc815 \uc81c\uc57d(measurement constraints) \ub0b4\uc5d0\uc11c \ucd5c\ub300 \ub108\ube44(\ub610\ub294 \ub192\uc774)\ub97c \ucc44\uc6c1\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Column(modifier = Modifier.width(300.dp)) {\n      Box(modifier = Modifier.fillMaxWidth()) \/\/ 300.dp\ub97c \ucc44\uc6c0\n  }\n<\/code><\/pre>\n\n\n\n<p>\uc77c\ubc18\uc801\uc778 \ub808\uc774\uc544\uc6c3(Column, Row, Box \ub4f1)\uc5d0\uc11c\ub294 \uc798 \uc791\ub3d9\ud558\uc9c0\ub9cc, LazyRow\/LazyColumn\uc758 item \ube14\ub85d \ub0b4\ubd80\uc5d0\uc11c\ub294 \uc81c\ub300\ub85c \uc791\ub3d9\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc65c\ub0d0\ud558\uba74:<\/p>\n\n\n\n<ol>\n<li>LazyRow\ub294 \uac01 item\uc5d0\uac8c &#8220;\ub108\uac00 \uc6d0\ud558\ub294 \ub9cc\ud07c \ud06c\uae30\ub97c \uac00\uc838\ub3c4 \ub3fc&#8221;\ub77c\uace0 \ub9d0\ud569\ub2c8\ub2e4 (\uc81c\uc57d\uc774 \ubb34\ud55c\ub300)<\/li>\n\n\n\n<li>fillMaxWidth()\ub294 &#8220;\uc8fc\uc5b4\uc9c4 \uc81c\uc57d \ub0b4 \ucd5c\ub300 \ub108\ube44&#8221;\ub97c \uc758\ubbf8\ud558\ub294\ub370, \uc81c\uc57d\uc774 \ubb34\ud55c\ub300\uba74 \uc758\ubbf8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4<\/li>\n\n\n\n<li>\uacb0\uacfc\uc801\uc73c\ub85c item\uc740 \ucf58\ud150\uce20\uc758 \uace0\uc720 \ud06c\uae30(intrinsic size)\ub85c \uce21\uc815\ub429\ub2c8\ub2e4<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">fillParentMaxWidth()<\/h2>\n\n\n\n<p>fillParentMaxWidth()(\ub610\ub294 fillParentMaxHeight)\ub294 LazyRow\/LazyColumn\uc758 \ubd80\ubaa8 \ucee8\ud14c\uc774\ub108 \ub108\ube44(\ub610\ub294 \ub192\uc774)\ub97c \uae30\uc900\uc73c\ub85c \ucc44\uc6c1\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LazyRow(\n      modifier = Modifier.fillMaxWidth(),\n      contentPadding = PaddingValues(horizontal = 14.dp)\n  ) {\n      item {\n          Box(modifier = Modifier.fillParentMaxWidth())\n          \/\/ LazyRow\uc758 viewport \ub108\ube44(contentPadding \uc81c\uc678)\ub97c \ucc44\uc6c0\n          \/\/ LazyRow\uac00 \ud654\uba74 \uc804\uccb4(400.dp)\ub77c\uba74, \n          \/\/ viewport\ub294 400.dp - 28.dp = 372.dp\uc774\uace0,\n          \/\/ Box\ub294 372.dp\ub97c \ucc44\uc6c0\n\n\n      }\n  }\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\uc8fc\uc694 \ucc28\uc774\uc810<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\ud2b9\uc9d5<\/th><th>fillMax*()<\/th><th>fillParentMax*()<\/th><\/tr><\/thead><tbody><tr><td>\uc801\uc6a9 \ub300\uc0c1<\/td><td>\uc77c\ubc18 \ub808\uc774\uc544\uc6c3<\/td><td>LazyRow\/LazyColumn\uc758 item<\/td><\/tr><tr><td>\uae30\uc900<\/td><td>\uce21\uc815 \uc81c\uc57d(constraints)<\/td><td>\ubd80\ubaa8 \ucee8\ud14c\uc774\ub108\uc758 \uc2e4\uc81c \ud06c\uae30<\/td><\/tr><tr><td>Lazy \ub9ac\uc2a4\ud2b8\uc5d0\uc11c<\/td><td>\uc791\ub3d9 \uc548 \ud568<\/td><td>\uc815\uc0c1 \uc791\ub3d9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>fillParentMaxWidth()\ub294 \ube44\uc728\ub3c4 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> LazyRow {\n      item {\n          Box(modifier = Modifier.fillParentMaxWidth(0.8f))\n          \/\/ \ubd80\ubaa8 \ub108\ube44\uc758 80%\ub97c \ucc44\uc6c0\n      }\n  }\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\uc65c \uc774\ub7f0 \ucc28\uc774\uac00 \uc0dd\uacbc\ub098?<\/h2>\n\n\n\n<p>LazyRow\/LazyColumn\uc740&nbsp;<strong>\uac00\uc0c1\ud654(virtualization)<\/strong>\ub97c \uc704\ud574 \ud2b9\ubcc4\ud55c \uce21\uc815 \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ud654\uba74\uc5d0 \ubcf4\uc774\ub294 item\ub9cc \uc2e4\uc81c\ub85c \ucef4\ud3ec\uc988\ud558\uace0 \uce21\uc815\ud558\uae30 \ub54c\ubb38\uc5d0, \uc77c\ubc18\uc801\uc778 \uc81c\uc57d \uc804\ud30c \ubc29\uc2dd\uc73c\ub85c\ub294 \ubd80\ubaa8 \ud06c\uae30\ub97c \uc54c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uadf8\ub798\uc11c<br>fillParentMaxWidth()\/fillParentMaxHeight()\ub77c\ub294 \ubcc4\ub3c4\uc758 modifier\uac00 \ud544\uc694\ud55c \uac83\uc785\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>fillMaxWidth() fillMaxWidth()(\ub610\ub294 fillMaxHeight)\ub294 \ud604\uc7ac \ucef4\ud3ec\uc800\ube14\uc758 \uce21\uc815 \uc81c\uc57d(measurement constraints) \ub0b4\uc5d0\uc11c \ucd5c\ub300 \ub108\ube44(\ub610\ub294 \ub192\uc774)\ub97c \ucc44\uc6c1\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc778 \ub808\uc774\uc544\uc6c3(Column, Row, Box \ub4f1)\uc5d0\uc11c\ub294 \uc798 \uc791\ub3d9\ud558\uc9c0\ub9cc, LazyRow\/LazyColumn\uc758 item \ube14\ub85d \ub0b4\ubd80\uc5d0\uc11c\ub294 \uc81c\ub300\ub85c \uc791\ub3d9\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc65c\ub0d0\ud558\uba74: fillParentMaxWidth() fillParentMaxWidth()(\ub610\ub294 fillParentMaxHeight)\ub294 LazyRow\/LazyColumn\uc758 \ubd80\ubaa8 \ucee8\ud14c\uc774\ub108 \ub108\ube44(\ub610\ub294 \ub192\uc774)\ub97c \uae30\uc900\uc73c\ub85c \ucc44\uc6c1\ub2c8\ub2e4. \uc8fc\uc694 \ucc28\uc774\uc810 \ud2b9\uc9d5 fillMax*() fillParentMax*() \uc801\uc6a9 \ub300\uc0c1 \uc77c\ubc18 \ub808\uc774\uc544\uc6c3 LazyRow\/LazyColumn\uc758 item \uae30\uc900 [&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":[16],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/46745"}],"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=46745"}],"version-history":[{"count":1,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/46745\/revisions"}],"predecessor-version":[{"id":46746,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/46745\/revisions\/46746"}],"wp:attachment":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}