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

์ „์ฒด ๊ธ€

(374)
[Android] RecyclerView.Adapter ์•ˆ click listener ์œ„์น˜ androidessence.com/recyclerview-vs-listview RecyclerView VS ListView Understanding what the difference is between a RecyclerView and a ListView. androidessence.com stackoverflow.com/questions/33845846/why-is-adding-an-onclicklistener-inside-onbindviewholder-of-a-recyclerview-adapt Why is adding an OnClickListener inside onBindViewHolder of a RecyclerView.Adapter considered bad practice? I have t..
[Library] Glide asFile()/downloadOnly()๋กœ ์–ป์€ ํŒŒ์ผ์˜ ํ™•์žฅ์ž .0 remote url๋กœ ๋ฐ›์€ ์ด๋ฏธ์ง€๋ฅผ local์— ์ €์žฅํ•˜๋Š” ์†์‰ฌ์šด ๋ฐฉ๋ฒ•์œผ๋กœ Glide์˜ asFile(), downloadOnly()๊ฐ€ ์žˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ์•˜๋‹ค. ์ €์žฅ๋œ ํŒŒ์ผ์˜ ์ด๋ฆ„์„ ํ™•์ธํ•ด๋ณด๋‹ˆ ํ™•์žฅ์ž๊ฐ€ .0์œผ๋กœ ๋‚˜์™”๋‹ค. github.com/bumptech/glide/issues/1620 The cache file extension · Issue #1620 · bumptech/glide Glide Version: 3.7.1 Device/Android Version: Xiaomi Redmi Note 3 Pro / 6.0 The cache file has an extension ".0" . Can i modify it? i want a .gif extension github.com ํ•ด๊ฒฐ์ฑ…์ด ์žˆ์—ˆ๋‹ค. val direc..
[Android] emulator process for AVD Pixel_3_XL_API_30 was killed. Android 11 ์‹ค๋‹จ๋ง์ด ์—†์–ด์„œ ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ ์ž ํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ Android 11 ๋กœ ์„ค์ •ํ•œ ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š์•˜๋‹ค. emulator process for AVD Pixel_3_XL_API_30 was killed. ์ด ํŒ์—… ์ฐฝ ๋ฉ”์‹œ์ง€๋งŒ ๋‚˜์™”๋‹ค. ํ•ด๋‹น ๋ฒ„์ „์˜ SDK ํ”Œ๋žซํผ์„ ์„ค์น˜ํ•˜๊ณ , ์• ๋ฎฌ๋ ˆ์ดํ„ฐ SDK Tool์„ ์—…๋ฐ์ดํŠธํ•ด์„œ ํ•ด๊ฒฐํ–ˆ๋‹ค.
[Kotlin] const kotlinlang.org/docs/keyword-reference.html#modifier-keywords Keywords and operators - Help | Kotlin kotlinlang.org kotlinlang.org/docs/properties.html#compile-time-constants Properties - Help | Kotlin kotlinlang.org const ํ‚ค์›Œ๋“œ๋Š” ์ปดํŒŒ์ผ ํƒ€์ž„ ์ƒ์ˆ˜์ธ ์†์„ฑ์„ ํ‘œ์‹œํ•œ๋‹ค. ์ปดํŒŒ์ผ ํƒ€์ž„ ์ƒ์ˆ˜ ์ฝ๊ธฐ ์ „์šฉ ์†์„ฑ์˜ ๊ฐ’์ด ์ปดํŒŒ์ผ ํƒ€์ž„์— ์•Œ๋ ค์ง€๋ฉด, const ์ˆ˜์ •์ž๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์ปดํŒŒ์ผ ์‹œ๊ฐ„ ์ƒ์ˆ˜๋กœ ํ‘œ์‹œํ•œ๋‹ค. ์ด๋Ÿฌํ•œ ์†์„ฑ์€ ๋‹ค์Œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ์ถฉ์กฑํ•ด์•ผ ํ•œ๋‹ค. Top-level์ด๊ฑฐ๋‚˜, Object ์„ ์–ธ์˜ ๋ฉค๋ฒ„๊ฑฐ๋‚˜ Compantion ๊ฐ์ฒด์˜ ๋ฉค๋ฒ„์ด๋‹ค. St..
[Kotlin] ๋ฌธ์ž์—ด ์ž๋ฆฌ์ˆ˜ ์ฑ„์šฐ๊ธฐ : padStart() padEnd() kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/pad-start.html padStart - Kotlin Programming Language kotlinlang.org kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/pad-end.html padEnd - Kotlin Programming Language kotlinlang.org fun CharSequence.padStart(lenght: Int, padChar: Char = ' '): CharSequence fun String.padStart(lenght: Int, padChar: Char = ' '): String fun CharSequence.padEnd(lenght..
[Android] RecyclerView setHasFixedSize developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView#sethasfixedsize RecyclerView | Android ๊ฐœ๋ฐœ์ž | Android Developers RecyclerView open class RecyclerView : ViewGroup, ScrollingView, NestedScrollingChild2, NestedScrollingChild3 Known Direct Subclasses BaseGridView An abstract base class for vertically and horizontally scrolling lists. WearableRecyclerView Wearable spec..
[Android] AppCompat Library ์‚ฌ์šฉ ์ด์œ  developer.android.com/jetpack/androidx/releases/appcompat?hl=ko AppCompat | Android ๊ฐœ๋ฐœ์ž | Android Developers AppCompat ์ด์ „ API ๋ฒ„์ „์˜ ํ”Œ๋žซํผ์—์„œ ์ƒˆ API์— ์•ก์„ธ์Šคํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค(๋Œ€๋ถ€๋ถ„ ๋จธํ‹ฐ๋ฆฌ์–ผ ๋””์ž์ธ ์‚ฌ์šฉ). ์ตœ๊ทผ ์—…๋ฐ์ดํŠธ ํ˜„์žฌ ์•ˆ์ •ํ™” ๋ฒ„์ „ ๋‹ค์Œ ๋ฒ„์ „ ํ›„๋ณด ๋ฒ ํƒ€ ๋ฒ„์ „ ์•ŒํŒŒ ๋ฒ„์ „ 2021๋…„ 1์›” 13์ผ 1.2.0 - 1.3.0- developer.android.com AppCompat์€ Android Jetpack ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ํ•˜๋‚˜. ์ด์ „ API ๋ฒ„์ „์˜ ํ”Œ๋žซํผ์—์„œ ์ƒˆ API์— ์•ก์„ธ์Šคํ•  ์ˆ˜ ์žˆ๋‹ค. ๋Œ€๋ถ€๋ถ„์˜ Material Design์„ ์ง€์›ํ•œ๋‹ค. > ๋ฒ„์ „ ํ˜ธํ™˜์„ฑ ๋ฌธ์ œ ํ•ด๊ฒฐ. ์ด์ „ ๋ฒ„์ „ ํ”Œ๋žซํผ์—์„œ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š”..
[Kotlin] Equality ==, === kotlinlang.org/docs/equality.html Equality - Help | Kotlin kotlinlang.org ์ฝ”ํ‹€๋ฆฐ์˜ equality ํƒ€์ž…์—๋Š” ๋‘ ๊ฐ€์ง€๊ฐ€ ์žˆ๋‹ค. ๊ตฌ์กฐ์  equality ( == : equals()๋กœ ํ™•์ธํ•œ๋‹ค.) ์ฐธ์กฐ equality (===: ๊ฐ™์€ ๊ฐ์ฒด์˜ ์ฐธ์กฐ ํฌ์ธํŠธ๋ฅผ ๋น„๊ตํ•œ๋‹ค.) ๊ตฌ์กฐ์  equality ๊ตฌ์กฐ์  equality๋Š” == ์—ฐ์‚ฐ์œผ๋กœ ํ™•์ธํ•˜๊ณ , ๋ฐ˜๋Œ€ ์—ฐ์‚ฐ์€ != ์œผ๋กœ ํ™•์ธํ•œ๋‹ค. ๊ด€๋ก€์ƒ, a == b ํ‘œํ˜„์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ „ํ™˜๋œ๋‹ค. a?.equals(b) ?: (b == null) a๊ฐ€ null์ด ์•„๋‹ˆ๋ฉด equals(Any?)๋ฅผ ํ˜ธ์ถœํ•œ๋‹ค. a๊ฐ€ null์ด๋ฉด b์˜ ์ฐธ์กฐ๊ฐ€ null๊ณผ ๊ฐ™์€์ง€ ํ™•์ธํ•œ๋‹ค. ๋ช…์‹œ์ ์œผ๋กœ null ๊ฐ’๊ณผ ๋™์ผํ•œ์ง€ ๋น„๊ตํ•  ๋•Œ๋Š” ์ตœ์ ํ™”ํ•  ๊ฒƒ์€ ์—†..