[Android] View

[Android] View

View

UI ๊ตฌ์„ฑ์š”์†Œ, ์‚ฌ์šฉ์ž์˜ ๋ˆˆ์— ๋ณด์ด๋Š” ํ™”๋ฉด์˜ ๊ตฌ์„ฑ ์š”์†Œ

์œ„์ ฏ

์ง์ ‘์ ์œผ๋กœ ๋ณด์ด๋Š” UI
์‚ฌ์šฉ์ž์—๊ฒŒ ์ •๋ณด๋ฅผ ๋ณด์—ฌ์ฃผ๊ณ  ๋ช…๋ น์„ ์ž…๋ ฅ๋ฐ›๋Š” ์—ญํ• 
๋ฒ„ํŠผ, ํ…์ŠคํŠธ๋ทฐ โ€ฆ = ์ปจํŠธ๋กค

๋ทฐ๊ทธ๋ฃน

์ง์ ‘์ ์œผ๋กœ ๋ณด์ด์ง€ ์•Š์Œ
๋‹ค๋ฅธ ๋ทฐ๋ฅผ ๋‹ด๋Š” ์ปจํ…Œ์ด๋„ˆ ์—ญํ• 
๊ด€๋ จ๋œ ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋ทฐ๋ฅผ ์œ ๊ธฐ์ ์œผ๋กœ ๋ชจ์•„ ๋†“์€ ๋ทฐ์˜ ์ง‘ํ•ฉ = ๋ ˆ์ด์•„์›ƒ

๋ทฐ๋ฅผ ์ƒ์†ํ•˜์—ฌ ๋ทฐ๊ทธ๋ฃน๋„ ๋ทฐ์ฒ˜๋Ÿผ ๋‹ค๋ฃฐ ์ˆ˜ ์žˆ๋‹ค.

  • ์ปดํฌ์ง€ํŠธ ํŒจํ„ด(Composite Pattern) -> ๋›ฐ์–ด๋‚œ ํ™•์žฅ์„ฑ
    ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋ทฐ๋ฅผ ํฌํ•จํ•˜๋Š” ๋ทฐ๊ทธ๋ฃน ์—ญ์‹œ ๋˜ ๋‹ค๋ฅธ ํ•˜๋‚˜์˜ ๋ทฐ๊ฐ€ ๋œ๋‹ค.



[์ฐธ๊ณ ]
์•ˆ๋“œ๋กœ์ด๋“œ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์ •๋ณต 1,2๊ถŒ
Do it! ์•ˆ๋“œ๋กœ์ด๋“œ ์•ฑ ํ”„๋กœ๊ทธ๋ž˜๋ฐ

Comments