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

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ

(374)
[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..
[Android][Animation] 2์ดˆ๋งˆ๋‹ค ๊นœ๋นก์ด๋Š” ์• ๋‹ˆ๋ฉ”์ด์…˜. ์ดˆ๊ฐ„๋‹จ ๊ตฌํ˜„ https://developer.android.com/develop/ui/views/animations/prop-animation#choreography
[Android] Swipe ์ œ์Šค์ณ ๊ฐ์ง€ CustomView GestureDetector ์ด์šฉ https://stackoverflow.com/a/19506010 Android: How to handle right to left swipe gestures I want my app to recognize when a user swipes from right to left on the phone screen. How to do this? stackoverflow.com GestureDetector์˜ onFling()์ด ํ˜ธ์ถœ๋˜์ง€ ์•Š์„ ๊ฒฝ์šฐ https://stackoverflow.com/a/17833241 onfling() not being called for some reason I'm trying to implement gesture in my app and for s..
[Android][TextView] ์ค„ ๋†’์ด. lineHeight, lineSpacingExtra, lineSpacingMultiplier https://stackoverflow.com/a/54197979 Android lineHeight vs lineSpacingExtra can I know what is the difference between lineHeight and lineSpacingExtra in android xml. I tried to compare both, but I got the different result (I need the lineHeight function, however it is only stackoverflow.com lineHeight https://developer.android.com/reference/android/widget/TextView#attr_android:lineHeight TextVie..