๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90

์ „์ฒด ๊ธ€141

taskmanager ์ € ์ด๋ฏธ์ง€๋ฅผ ์ค‘์•™์— ๋ฐฐ์—ดํ•ด์•ผํ•˜๋Š”๋ฐ ....... verticalArrangement = Arrangement.Center, Arrangement๋ฅผ ์ฃผ๋ฉด ๋˜๋„ค 2022. 12. 26.
HappyBirthdayCard ์ฝ”๋“œ import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.Image import androidx.compose.foundation.layout.* import androidx.compose.material.MaterialTheme import androidx.compose.material.Surface import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Align.. 2022. 12. 24.
unit1- Android์•ฑ์— ์ด๋ฏธ์ง€ ์ถ”๊ฐ€ 3. ์•ฑ ์„ค์ • Android ๊ธฐ๊ธฐ๋Š” ๋‹ค์–‘ํ•œ ํ™”๋ฉด ํฌ๊ธฐ๋กœ ์ œ๊ณต๋˜๋ฉฐ ์ด๋Ÿฌํ•œ ํ™”๋ฉด์€ ํ”ฝ์…€ ํฌ๊ธฐ๋„ ๋‹ค๋ฅด๋‹ค. ์ฆ‰ ํ•œ ๊ธฐ๊ธฐ์—์„œ๋Š” ์ œ๊ณฑ ์ธ์น˜๋‹น 160ํ”ฝ์…€์„ ์‚ฌ์šฉํ•˜์ง€๋งŒ ๋‹ค๋ฅธ ๊ธฐ๊ธฐ์—์„œ๋Š” ๊ฐ™์€ ๊ณต๊ฐ„์— 480ํ”ฝ์…€์„ ์‚ฌ์šฉํ•œ๋‹ค. ์ด๋Ÿฌํ•œ ํ”ฝ์…€ ๋ฐ€๋„์˜ ์ฐจ์ด๋ฅผ ๊ณ ๋ คํ•˜์ง€ ์•Š์œผ๋ฉด ์‹œ์Šคํ…œ์ด ์ด๋ฏธ์ง€๋ฅผ ํ™•๋Œ€ํ•˜์—ฌ ํ๋ฆฟํ•œ ์ด๋ฏธ์ง€, ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๊ณผ๋„ํ•˜๊ฒŒ ์‚ฌ์šฉํ•˜๋Š” ํฐ ์ด๋ฏธ์ง€ ๋˜๋Š” ๋ถ€์ ์ ˆํ•œ ํฌ๊ธฐ์˜ ์ด๋ฏธ์ง€๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ๋‹ค. Android ์‹œ์Šคํ…œ์—์„œ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ๋ณด๋‹ค ํฐ ์ด๋ฏธ์ง€์˜ ํฌ๊ธฐ๋ฅผ ์กฐ์ ˆํ•˜๋ฉด ๋ฉ”๋ชจ๋ฆฌ ๋ถ€์กฑ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ์‚ฌ์ง„ ๋ฐ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€์˜ ๊ฒฝ์šฐ drawble-nodpi ํด๋”์— ๋ฐฐ์น˜ํ•ด์•ผ ํฌ๊ธฐ ์กฐ์ ˆ ๋™์ž‘์ด ์ค‘์ง€๋œ๋‹ค. 4. ์ด๋ฏธ์ง€ ์ปดํฌ์ €๋ธ” ์ถ”๊ฐ€ https://developer.android.com/codelabs/basic-android-kotli.. 2022. 12. 24.
Unit1- Jetpack Compose๋ž€ ๋ฌด์—‡์ธ๊ฐ€์š”? Jetpack Compose๋Š” Android UI๋ฅผ ๋นŒ๋“œํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” ์ตœ์‹  ํˆดํ‚ท์ด๋‹ค. Compose๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์„œ UI์š”์†Œ๋ฅผ ๋‚ด๋ณด๋‚ด๋Š” ํ•จ์ˆ˜์ธ Composable ํ•จ์ˆ˜๋ฅผ ์ •์˜ํ•˜์—ฌ UI๋ฅผ ๋นŒ๋“œํ•  ์ˆ˜ ์žˆ๋‹ค. compoable ํ•จ์ˆ˜๋Š” ํ•ญ์ƒ @Composable ์ฃผ์„์ด ์žˆ์–ด์•ผ ํ•œ๋‹ค. ์ด ์ฃผ์„์„ ํ†ตํ•ด ์ด ํ•จ์ˆ˜๊ฐ€ ๋ฐ์ดํ„ฐ๋ฅผ UI๋กœ ๋ณ€ํ™˜ํ•˜๊ฒŒ ๋˜์–ด ์žˆ๋‹ค๋Š” ๊ฒƒ์„ Compose ์ปดํŒŒ์ผ๋Ÿฌ์— ์•Œ๋ฆฐ๋‹ค. ์ปดํŒŒ์ผ๋Ÿฌ๋ž€? ์ž‘์„ฑํ•œ ์ฝ”๋“œ๋ฅผ ํ•œ ์ค„์”ฉ ๋ณด๊ณ  ์ปดํ“จํ„ฐ๊ฐ€ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋Š” ๋‚ด์šฉ(๊ธฐ๊ณ„์–ด)๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ํŠน์ˆ˜ ํ”„๋กœ๊ทธ๋žจ compoable ํ•จ์ˆ˜ - ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ํ—ˆ์šฉํ•˜์—ฌ ์•ฑ ๋กœ์ง์ด UI๋ฅผ ์„ค๋ช…ํ•˜๊ฑฐ๋‚˜ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค€๋‹ค @Composable fun Greeting(name: String) { Text(text = "Hello $n.. 2022. 12. 24.
728x90