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

์ „์ฒด ๊ธ€

(377)
[Android][Compose] Compose Canvas๋ฅผ ์ด์šฉํ•ด์„œ Dot Indicator ๋งŒ๋“ค๊ธฐ ๋ชฉ์  Compose์˜ Canvas๋ฅผ ์ด์šฉํ•ด์„œ View Pager์™€ ๊ฐ™์ด ์“ธ Dot Indicator ๋งŒ๋“ค๊ธฐ. ์š”๊ตฌ์‚ฌํ•ญ R_1. ์ด ์ธ๋””์ผ€์ดํ„ฐ๋Š” modifier.align ์„ ํ†ตํ•ด ์„ผํ„ฐ ์ •๋ ฌ์„ ํ•œ๋‹ค. R_2. dot์€ ๊ธฐ๋ณธ์œผ๋กœ ์›ํ˜•์ด๋‹ค. ํ˜„์žฌ ํŽ˜์ด์ง€๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” dot์€ ๊ฐ€๋กœ๋กœ ๊ธธ์ญ‰ํ•˜๊ฒŒ ๋Š˜์–ด์ ธ ์žˆ๋Š” ๋ผ์šด๋“œ์ฒ˜๋ฆฌ๋œ ์ง์‚ฌ๊ฐํ˜•์ด๋‹ค. ์ฝ”๋“œ / ๊ตฌํ˜„ @Composable fun BoxScope.DotIndicator( modifier: Modifier = Modifier, pagerState: PagerState, dotSpace: Dp = 4.dp, dotSize : Dp = 5.dp, currentDotWidth : Dp = 12.dp, listSize: Int, currentPageDotColor: Color =..
[Android][GridLayoutManager] view item ์„ผํ„ฐ ์ •๋ ฌ ์•ˆ๋  ๊ฒฝ์šฐ ๋ฌธ์ œ GirdLayoutManager๋ฅผ ์‚ฌ์šฉํ•˜๋Š” RecyclerView์˜ ๋ทฐ ์•„์ดํ…œ๋“ค์˜ ์„ผํ„ฐ ์ •๋ ฌ์ด ๋จนํžˆ์ง€ ์•Š๋Š”๋‹ค. ์ฐธ๊ณ  https://stackoverflow.com/a/27622849 RecyclerView GridLayoutAdapter - How to center items I am using RecyclerView with GridLayoutAdapter. Is it possible to center items horizontally or vertically? My item layout:
[๋””์ž์ธ ํŒจํ„ด] Repository Pattern ์ฐธ๊ณ  https://pinarturgut09.medium.com/what-is-the-repository-pattern-in-android-a-comprehensive-guide-df10ec874ddc https://pinartechtips.com/repository-pattern-in-android/ ๋ชฉ์  Repository Pattern์ด ๋ฌด์—‡์ธ์ง€ / ์™œ ์‚ฌ์šฉํ•˜๋Š”์ง€ / ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€ ์•ˆ๋‹ค. Repository Pattern์€ ๋ฌด์—‡์ธ๊ฐ€ ๋ฐ์ดํ„ฐ ์ ‘๊ทผ ๋ฐ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ ์ฒด๊ณ„์ ์ด๊ณ  ์กฐ์ง์ ์ธ ๋ฐฉ๋ฒ•์„ ์ œ๊ณตํ•˜๋Š” ๋””์ž์ธ ํŒจํ„ด. ๋ฐ์ดํ„ฐ ์†Œ์Šค(๋ฐ์ดํ„ฐ ๋ฒ ์ด์Šค, ๋„คํŠธ์›Œํฌ ์„œ๋น„์Šค ๋“ฑ)์™€ ์•ฑ์˜ ๋‚˜๋จธ์ง€ ๋ถ€๋ถ„๋“ค ์‚ฌ์ด์˜ ์ค‘์žฌ์ž๋กœ Repository๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ๋ฐ์ดํ„ฐ ์ ‘๊ทผ ์„ธ๋ถ€ ์‚ฌํ•ญ์„ ์ถ”์ƒํ™”ํ•œ๋‹ค. Repository Patter..
[Android][DataStore] DataStore ๋™๊ธฐ์ ์œผ๋กœ ์“ฐ๊ธฐ ์ฐธ๊ณ  https://developer.android.com/topic/libraries/architecture/datastore#synchronous ๋ชฉํ‘œ DataStore์˜ ์ €์žฅ ๊ฐ’์„ suspend fun ๋ฐ”๊นฅ์—์„œ ๋ถˆ๋Ÿฌ์˜ค๊ณ  ์‹ถ์—ˆ๋‹ค. (์ด๊ฑด ๊ฒฐ๊ตญ์—” DataStore๋ฅผ ๋™๊ธฐ์ ์œผ๋กœ ์“ฐ๊ณ  ์‹ถ๋‹ค๋Š” ์˜๋ฏธ๋ผ์„œ ์ œ๋ชฉ์„ ๊ทธ๋ ‡๊ฒŒ ๋„ฃ์—ˆ๋‹ค) ๊ธฐ์กด runBlocking์„ ์จ์„œ DataStore์˜ ๊ฐ’์„ ๊ฐ€์ ธ์˜ค๊ธฐ๋Š” ํ–ˆ์—ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ runBlocking์ด UI thread๋ฅผ blockํ•˜๋Š” ๊ฑฐ๋ผ ANR ๋ฐœ์ƒ ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ๋‹ค๊ณ  ํ•˜๋‹ˆ๊นŒ, ๊ณต์‹๋ฌธ์„œ๋ฅผ ์‚ดํŽด๋ณธ๋‹ค. ๊ณต์‹ ๋ฌธ์„œ ํ™•์ธ ์—ฌ๊ธฐ๋ณด๋ฉด DataStore๋กœ๋ถ€ํ„ฐ ๋ฐ์ดํ„ฐ๋ฅผ ํ”„๋ฆฌ๋กœ๋”ฉํ•˜๋ฉด ANR ์ด์Šˆ๋ฅผ ์ค„์ผ ์ˆ˜๋Š” ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค. ๊ฒฐ๊ณผ ๊ณต์‹ ๋ฌธ์„œ์—์„œ ์•Œ๋ ค์ฃผ๋Š” ๋ฐฉ๋ฒ• 1. runBlocking์„ ์จ๋ผ. 2..
[Android]์•ฑ ๋นŒ๋“œ ์„ค์ • - zero base ํ”„๋กœ์ ํŠธ ๊ฐœ๋ฐœ ์‹œ ๋‚ด์šฉ ์ •๋ฆฌ์˜ ํ•„์š”์„ฑ์„ ๋Š๋‚€ ๊ฒƒ๋“ค ์ฐธ๊ณ  https://stackoverflow.com/a/36455983 https://developer.android.com/studio/publish/app-signing?hl=ko#secure-shared-keystore ๋ฌธ์„œ ์ž‘์„ฑ ํ•„์š”์„ฑ ๊ธ‰ํ•˜๊ฒŒ zero base ํ”„๋กœ์ ํŠธ๋ฅผ ๋„˜๊ฒจ๋ฐ›์•„์„œ ์ผ์„ ํ–ˆ์—ˆ์Œ. ์ด๊ฒƒ ์ €๊ฒƒ ๋นŒ๋“œ ๊ด€๋ จํ•ด์„œ ์„ค์ • ํ•ด์•ผํ•˜๋Š” ๊ฑด ์•„๋Š”๋ฐ ๊ตฌ์ฒด์ ์ธ ๋ฐฉ๋ฒ•๋“ค์€ ํ™•์‹คํ•˜๊ฒŒ ์ƒ๊ฐ์ด ๋‚˜์ง€ ์•Š์•„ ๋‹ค ๊ฒ€์ƒ‰ํ•˜๋ฉฐ ์ฐพ์•„์•ผ ํ–ˆ์Œ. ์ด๋ฒˆ์— ์ •๋ฆฌํ•ด์„œ ๋‹ค์Œ ๋ฒˆ์— ๋ˆ„๋ฝ ์‚ฌํ•ญ ์—†์ด, ๋œ ํ—ค๋งค๋ฉด์„œ ๋น ๋ฅด๊ฒŒ ์ž‘์—…ํ•˜๊ธฐ ์œ„ํ•ด ๊ธฐ๋กํ•จ. ๊ธฐ๋ก ๋Œ€์ƒ apk, aab ํŒŒ์ผ ์ด๋ฆ„ ์ž๋™ ์ƒ์„ฑ flavor/type ๋ณ„ ์„ค์ • flavor/type ๋ณ„ ์‚ฌ์ด๋‹ ํ‚ค ์ž๋™ ์„ค์ • flavor/type ๋ณ„ ์•ฑ ์ด๋ฆ„ ์ž๋™ ์„ค์ • ๋ฆด๋ฆฌ์ฆˆ ๋ฒ„์ „ ์„ค์ • buildF..
[ํ”„๋กœ๊ทธ๋ž˜๋จธ์˜ ๋‡Œ] ๋ณ€์ˆ˜ ์—ญํ•  https://jpub.tistory.com/1234 ํ”„๋กœ๊ทธ๋ž˜๋จธ์˜ ๋‡Œ 2022 ์„ธ์ข…๋„์„œ ์šฐ์ˆ˜ํ•™์ˆ ๋„์„œ ์„ ์ •์ธ์ง€๊ณผํ•™์„ ํ™œ์šฉํ•œ ๊ฐœ๋ฐœ์ž์˜ ์ผ๋จธ๋ฆฌ ๊ฐœ์„ ๋ฒ• ๋„์„œ๊ตฌ๋งค ์‚ฌ์ดํŠธ(๊ฐ€๋‚˜๋‹ค์ˆœ) [๊ต๋ณด๋ฌธ๊ณ ] [๋„์„œ11๋ฒˆ๊ฐ€] [์•Œ๋ผ๋”˜] [์˜ˆ์Šค์ด์‹ญ์‚ฌ] [์ธํ„ฐํŒŒํฌ] [์ฟ ํŒก]์ „์ž์ฑ… ๊ตฌ๋งค ์‚ฌ์ดํŠธ(๊ฐ€ jpub.tistory.com ๋ณ€์ˆ˜๊ฐ€ ์–ด๋–ค ์ข…๋ฅ˜์˜ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š”์ง€๋ฅผ ์ดํ•ดํ•˜๋Š” ๊ฒƒ์€ ์ฝ”๋“œ๋ฅผ ์ถ”๋ก ํ•˜๊ณ  ์ˆ˜์ •ํ•˜๋Š”๋ฐ ๊ฒฐ์ •์ ์ธ ์—ญํ• ์„ ํ•œ๋‹ค. ์ด์Šคํ… ํ•€๋ž€๋“œ ๋Œ€ํ•™๊ต์˜ ์š”๋ฅด๋งˆ ์‚ฌ์•ผ๋‹ˆ์—๋ฏธ Jorma Sajaniemji ๊ต์ˆ˜๊ฐ€ ๋งŒ๋“  ๋ณ€์ˆ˜ ์—ญํ•  role of varialbes ํ”„๋ž˜์ž„์›Œํฌ๋Š” ํ”„๋กœ๊ทธ๋žจ ๋‚ด์—์„œ ๋ณ€์ˆ˜๊ฐ€ ํ•˜๊ณ ์ž ํ•˜๋Š” ๋ฐ”๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. ์ด 11๊ฐ€์ง€ ์—ญํ•  ๊ณ ์ •๊ฐ’ fixed value ์ดˆ๊ธฐํ™”๋ฅผ ํ†ตํ•ด ๊ฐ’์ด ํ• ๋‹น๋œ ์ดํ›„ ๊ฐ’์ด ๋ณ€๊ฒฝ๋˜์ง€ ์•Š๋Š” ๋ณ€์ˆ˜. ์ƒ์ˆ˜. ์Šคํƒœ..
[Android Studio][Gradle] keystore.properties (No such file or directory) ๋กœ๊ทธ - ์˜ˆ์ œ ํ”„๋กœ์ ํŠธ ํ™•์ธ์šฉ ์ฐธ๊ณ  https://stackoverflow.com/questions/49008571/gradle-build-failing-due-to-keystore-properties-file-missing Gradle build failing due to keystore.properties file missingI'm trying to use this alarm app on Android Studio - https://github.com/philliphsu/ClockPlus . However, gradle build is failing (error message below). Please let me know what needs to be fixed for ...stackoverflow.com  ๋ฌธ์ œ ์ƒํ™ฉ์˜ˆ์ œ ํ”„๋กœ..
[Android][DialogFragment] Rounded Corner + ๋„ˆ๋น„ ๊ฐ’ ์ง€์ • https://dvlv.tistory.com/135 [Android] Custom DialogFragment ์ขŒ์šฐ ๋„ˆ๋น„ ๊ฝ‰ ์ฐจ๊ฒŒ 90% 90% % ์กฐ์ ˆํ•ด์„œ style์— ๋„ฃ์œผ๋ฉด ๋จ. (style ์ฝ”๋“œ ์ฐธ๊ณ ) onCreate์— style์„ ์ง€์ •ํ•ด์ฃผ์„ธ์š”. override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setStyle(STYLE_NORMAL, R.style.ProfileNameEditTextDialogSt dvlv.tistory.com https://stackoverflow.com/a/62432311 How to make custom dialog with rounded corners in android..