foucs
Android / NestedScrollView ๋ด์ RecyclerView ์๋ ์คํฌ๋กค ๋ฌธ์ (์คํฌ๋กค ๋ฐ๋ฆผ ํ์)
NestedScrollView๋ฅผ ์ฌ์ฉํ ๋ ์ฃผ๋ก ๋ด๋ถ์ RecyclerView๋ฅผ ๋ง์ด ์ฌ์ฉํฉ๋๋ค. ์ด๋ ๋ฐ์ํ๋ ๋ฌธ์ ๊ฐ focus๊ฐ RecyclerView๋ก ๊ฐ์ ์๋จ์ ๋ด์ฉ์ด ๋ ์์์๋ ๋ถ๊ตฌํ๊ณ RecyclerView๊ฐ ์๋ ์์น๋ก Scroll์ด ๋๋ ๊ฒ ์ ๋๋ค. ์ด๋ฐ ํ์์ด ๋ํ๋๋ ์ด์ ๋ ScrollView๊ฐ ์์๋ ์์์ RecyclerView์ ๊ฐ์ด Scroll์ด ๊ฐ๋ฅํ ๋ทฐ๊ฐ ์์ผ๋ฉด, ํด๋น ์์ ๋ทฐ์๊ฒ focus๊ฐ ๋บ๊ธฐ๊ธฐ ๋๋ฌธ์ ๋๋ค. ๊ทธ๋ ๊ธฐ์ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด์๋ ์์๋ทฐ์๊ฒ focus๊ฐ ๊ฐ์ง ์๋๋ก ๋ง๋ค์ด์ผ ํฉ๋๋ค. ์ฌ๊ธฐ์ ๊ฐ์ฅ ๋จผ์ ๋๋ ์๊ฐ์ android:focusable(Focus ๊ฐ๋ฅ ์ฌ๋ถ), android:focusableInTouchMode (์ฌ์ฉ์ ํฐ์น์ ์ธํ Focus ๊ฐ..