๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’š ๊ฐœ๋ฐœ/์•ˆ๋“œ๋กœ์ด๋“œ

[์•ˆ๋“œ๋กœ์ด๋“œ] inflater, adapter

by devshin.kr 2020. 12. 21.
728x90

ArrayList๋กœ ๋˜์–ด ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ListView์— ๋ฟŒ๋ฆฌ๊ณ , ํ•ด๋‹น ListView์˜ ํ•ญ๋ชฉ์„ ํด๋ฆญํ•˜๋ฉด menu๊ฐ€ ๋œจ๊ฒŒ ํ•˜๋Š” ์•ฑ์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ž‘์„ฑํ•ด ๋ณด์•˜๋‹ค..

inflater์™€ adapter ์ดํ•ด๊ฐ€ ์„ ํ–‰๋˜์–ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์•„ ๋„์›€ ๋ฐ›์€ ๋ธ”๋กœ๊ทธ ๋‘ ๊ฐœ๋ฅผ ์ •๋ฆฌํ•ด ๋‘”๋‹ค.

 

inflater๋Š” xml๋กœ ์ •์˜๋œ view๋‚˜ menu ๋“ฑ์„ ์‹ค์ œ ๊ฐ์ฒดํ™” ์‹œํ‚ค๋Š” ์—ญํ• ์„ ํ•˜๊ณ ,

adapter๋Š” ListView์™€ ์‹ค์ œ ๋ฐ์ดํ„ฐ(List๋‚˜ Array ๋“ฑ)์„ ์—ฐ๊ฒฐํ•ด ์ฃผ๋Š” ์ค‘๊ฐ„ ์—ญํ• ์„ ํ•œ๋‹ค.

 

 

m.blog.naver.com/PostView.nhn?blogId=epslrudals&logNo=220614598519&proxyReferer=https:%2F%2Fwww.google.com%2F

 

[์•ˆ๋“œ๋กœ์ด๋“œ] inflater , adapter ๊ฐœ๋… ๋ฐ ์˜ˆ์ œ

inflater๋Š” xml๋กœ ์ •์˜๋œ view (๋˜๋Š” menu ๋“ฑ)๋ฅผ ์‹ค์ œ ๊ฐ์ฒดํ™” ์‹œํ‚ค๋Š” ์šฉ๋„์ž…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ์•ฝ๊ฐ„ ๋ณต์žกํ•œ ...

blog.naver.com

www.crocus.co.kr/1581?category=22652

 

์•ˆ๋“œ๋กœ์ด๋“œ ์–ด๋Œ‘ํ„ฐ ๋ทฐ(Adapter View)

์–ด๋Œ‘ํ„ฐ(Adapter)๋ž€? Adapter๋Š” ํ•˜๋‚˜์˜ Object(๊ฐ์ฒด)๋กœ์„œ, ๋ณด์—ฌ์ง€๋Š” View์™€ ๊ทธ View์— ์˜ฌ๋ฆด Data๋ฅผ ์—ฐ๊ฒฐํ•˜๋Š” ์ผ์ข…์˜ Bridge๋‹ค. ์ฆ‰, ๋ฐ์ดํ„ฐ์˜ ์›๋ณธ์„ ๋ฐ›์•„ ๊ด€๋ฆฌํ•˜๊ณ , ์–ด๋Œ‘ํ„ฐ๋ทฐ๊ฐ€ ์ถœ๋ ฅํ•  ์ˆ˜ ์žˆ๋Š” ํ˜•ํƒœ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ

www.crocus.co.kr

www.crocus.co.kr/1584

 

Android LayoutInflater ๊ฐœ๋… ๋ฐ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

LayoutInflater์ด๋ž€? LayoutInflater์€ XML์— ๋ฏธ๋ฆฌ ์ •์˜ํ•ด๋‘” ํ‹€์„ ์‹ค์ œ ๋ฉ”๋ชจ๋ฆฌ์— ์˜ฌ๋ ค์ฃผ๋Š” ์—ญํ• ์„ ํ•œ๋‹ค. Inflater ๋‹จ์–ด์˜ ๋œป์ด ๋ถ€ํ’€๋ฆฌ๋‹ค๋ผ๋Š” ์˜๋ฏธ๋กœ์จ LayoutInflater๋ผ๋Š” ๋‹จ์–ด์—์„œ๋„ ์œ ์ถ”๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. ์ฆ‰, Layo.

www.crocus.co.kr

 

๋Œ“๊ธ€