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

์ „์ฒด ๊ธ€

(377)
[Android] ๋ฆฌ์‚ฌ์ดํด๋Ÿฌ๋ทฐ notifyDataSetChanged() ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋™์ž‘ ์•ˆ ํ•  ๋•Œ https://stackoverflow.com/a/29792793 RecyclerView Adapter notifyDataSetChanged stops fancy animation I am building a component based on RecyclerView, allowing user to reorder items by drag and drop. Once I am on the DragListener side, I need the position it has in the adapter in order to perform c... stackoverflow.com
[Android] ExoPlayer ๋™์˜์ƒ ํ”Œ๋ ˆ์ด https://exoplayer.dev/ ExoPlayer exoplayer.dev https://developer.android.com/codelabs/exoplayer-intro#0 Media streaming with ExoPlayer | Android ๊ฐœ๋ฐœ์ž | Android Developers In this codelab, you build a media player to render audio and adaptive video streams with ExoPlayer, the open source media player running in the Android YouTube app. The codelab uses and customizes the UI components included wit..
[์†ŒํŠธํ”„์›จ์–ด ์—”์ง€๋‹ˆ์–ด๋ง] Software Engineering at Google ์ฝ๊ณ  ๊ธฐ๋ก _ Chapter 3 Software Engineering at Google Curated by Titus Winters, Tom Manshreck & Hyrum Wright 7. ์œ„์น˜ : PART II Culture / Chapter 3: Knowledge Sharing / Challenges to Learning Sharing expertise across an organization is not an easy task. Without a strong culture of learning, challenges can emerge. Google has experienced a number of these challenges, especially as the company has scaled: ์กฐ์ง์— ์ „๋ฌธ ์ง€์‹์„ ๊ณต์œ ํ•˜๋Š” ๊ฒƒ์€..
[Android]ViewPager2 infinite auto scrolling ์–‘๋ฐฉํ–ฅ ์Šคํฌ๋กค ๋ฃจํ”„, ์ž๋™ ์Šคํฌ๋กค ๊ธฐ๋Šฅ ๋‘˜ ๋‹ค ๊ฐœ๋ฐœ ์ค‘. ์–‘๋ฐฉํ–ฅ์œผ๋กœ ์Šคํฌ๋กค ๋ฃจํ”„. ViewHolder์˜ ์•„์ดํ…œ ๊ฐœ์ˆ˜๋ฅผ Int.MAX_SIZE ๋กœ ๋‘๊ณ  ์“ฐ๊ณ  ์‹ถ์ง€ ์•Š์•„์„œ ๋ฐฉ๋ฒ•์„ ์ฐพ์•„๋ดค๋‹ค. https://stackoverflow.com/a/66631104/9287140 Android : Implementation of two way Endless Viewpager What I want: I have been trying to implement two directional Endless viewpager in Android, Left to Right & Right to Left What I did: I have implemented Endless viewpager adapter, it works f... st..
[Android]CollapsingToolbarLayout ํ•˜์œ„ child view ๋‚˜์—ด ์ˆœ์„œ CollapsingToolbarLayout์˜ ํ•˜์œ„ ์ž๋…€ ๋ทฐ๋“ค์˜ ๋‚˜์—ด ์ˆœ์„œ์˜ ์˜๋ฏธ๋ฅผ ์•Œ์ง€ ๋ชปํ–ˆ๋‹ค. ์˜ˆ์ œ ์ฝ”๋“œ๋“ค์„ ๋ณด๋ฉด CollapsingToolbarLayout ์•ˆ์˜ ๋งจ ๋งˆ์ง€๋ง‰์— Toolbar ์œ„์ ฏ์„ ๋„ฃ๋˜๋ฐ, ๊ทธ ์ด์œ ๋ฅผ ๋”ฑํžˆ ์•Œ ์ˆ˜๊ฐ€ ์—†์—ˆ๋‹ค. ์ด๋ฒˆ์— ์ž‘์—…ํ•˜๋ฉด์„œ ์—ฌ๋Ÿฌ ์‚ฝ์งˆ์„ ํ•˜๋ฉฐ ์•Œ๊ฒŒ๋˜์—ˆ๋‹ค. ์‹œ์ž‘ ์ฒ˜์Œ ์ง„์ž…ํ•˜๋ฉด ๋‚˜์˜ค๋Š” ํ™”๋ฉด. ์ด์ œ ํ™”๋ฉด์„ ์œ„๋กœ ์Šคํฌ๋กคํ•˜๋ฉฐ ๋น„๊ตํ•œ๋‹ค. CollapsingToolbarLayout ์•ˆ์— pin ๊ณ ์ •๋œ Toolbar ์œ„์ ฏ์ด ์ตœ์ƒ๋‹จ์˜ ์ž๋…€๋ทฐ์ผ ๊ฒฝ์šฐ pin ๋œ ํˆด๋ฐ” ์˜์—ญ๋งŒํผ ๋ทฐํŽ˜์ด์ €2์˜์—ญ์ด ๋ณด์ธ๋‹ค. CollapsingToolbarLayout ์•ˆ์— pin ๊ณ ์ •๋œ Toolbar ์œ„์ ฏ์ด ์ตœํ•˜๋‹จ์˜ ์ž๋…€๋ทฐ์ผ ๊ฒฝ์šฐ pin๋œ ํˆด๋ฐ” ์˜์—ญ๋งŒํผ ํˆด๋ฐ”๊ฐ€ ๋ณด์ธ๋‹ค. CollapsingToolbarLayout์ด ..
[Android]Glide fitXY Glide์˜ ScaleType๊ด€๋ จ ์˜ต์…˜์ด fitCenter()์™€ centerCrop()๋ฐ–์— ์—†๋‹ค๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ๋‹ค. fitXY๋Š” ์–ด๋–ป๊ฒŒ ํ•  ๊ฒƒ์ธ๊ฐ€ ๊ณ ๋ฏผํ–ˆ๋Š”๋ฐ, ๊ธˆ๋ฐฉ ํ•ด๊ฒฐ์ด ๋๋‹ค. ์ด๋ฏธ์ง€๋ทฐ์˜ adjustViewBounds ๊ฐ’์„ true๋กœ ์ง€์ •ํ•ด ์ฃผ๋‹ˆ ํ•ด๊ฒฐ๋๋‹ค. Glide์— ๋‹ค๋ฅธ ์˜ต์…˜ ์„ค์ •์€ ํ•˜์ง€ ์•Š์•˜๋‹ค.
[Android]AlertDialog.Builder- dismiss() ์‚ฌ์šฉ ๋‚จ๋ฐœ ์š”์•ฝ AlertDialog.Builder๋กœ ๋‹ค์ด์–ผ๋กœ๊ทธ ์ƒ์„ฑ์‹œ, 1. ๋ฒ„ํŠผ์˜ ๋ฆฌ์Šค๋„ˆ ์•ˆ์— ๋‹ค์ด์–ผ๋กœ๊ทธ์˜ dismiss()๋ฅผ ํ˜ธ์ถœํ•  ํ•„์š”์—†๋‹ค. 2. ์บ”์Šฌ ๋ฆฌ์Šค๋„ˆ ์•ˆ์— ๋‹ค์ด์–ผ๋กœ๊ทธ์˜ dismiss()๋ฅผ ํ˜ธ์ถœํ•  ํ•„์š”์—†๋‹ค. ํšŒ์‚ฌ ํ”„๋กœ์ ํŠธ์˜ ๊ธฐ์กด ์ฝ”๋“œ๋ฅผ ๋ณด๋‹ค๊ฐ€ ์˜๋ฌธ์ด ์ƒ๊ฒผ๋‹ค. ์ด๋ฒˆ์—๋Š” ํ™•์‹คํžˆ ์•Œ๊ณ  ๋„˜์–ด๊ฐ€์•ผ์ง€ ์‹ถ์–ด์„œ ๊ธฐ๋กํ•œ๋‹ค. ๊ธฐ์กด ์ฝ”๋“œ Dialog = new AlertDialog.Builder(context) .setTitle("ํƒ€์ดํ‹€") .setMessage("๋ฉ”์‹œ์ง€") .setPositiveButton("ํ™•์ธ", (dialog, which) -> doWork()) .setNegativeButton("์ทจ์†Œ", (dialog, which) -> dialog.dismiss()) //๋ฌธ์ œ์˜ ๊ตฌ๊ฐ„1 .setOnCancelL..
[์†ŒํŠธํ”„์›จ์–ด ์—”์ง€๋‹ˆ์–ด๋ง] Software Engineering at Google ์ฝ๊ณ  ๊ธฐ๋ก _ Chapter 1, 2 Software Engineering at Google ์›์„œ๋ฅผ ๋งค์ผ ์กฐ๊ธˆ์”ฉ ์ฝ๊ณ  ์žˆ๋‹ค. ์ฝ๋‹ค๊ฐ€ ์ด๋Œ€๋กœ ๊ทธ๋ƒฅ ์ง€๋‚˜์น˜๊ธฐ์—๋Š” ์•„์‰ฌ์šด ๋ถ€๋ถ„๋“ค์„ ๊ธฐ๋กํ•˜๋ ค๊ณ  ํ•œ๋‹ค. Software Engineering at Google Curated by Titus Winters, Tom Manshreck & Hyrum Wright 1. ์œ„์น˜ : PART II Culture / Chapter 2: How to Work Well on Teams / The Genius Myth The Genius Myth is the tendency that we as humans need to ascribe the success of a team to a single person/leader. ์ฒœ์žฌ ์‹ ํ™”๋Š” ์šฐ๋ฆฌ๊ฐ€ ์ธ๊ฐ„์œผ๋กœ์จ ํŒ€์˜ ์„ฑ๊ณต์„ ํ•œ ๊ฐœ์ธ/๋ฆฌ..