--------------------------------------- ¼Ò ½º ÄÚ µå ---------------------------------------
Rect rectgle= new Rect();
Window window= getWindow();
window.getDecorView().getWindowVisibleDisplayFrame(rectgle);
int StatusBarHeight= rectgle.top;
int contentViewTop=
window.findViewById(Window.ID_ANDROID_CONTENT).getTop();
int TitleBarHeight= contentViewTop - StatusBarHeight;
-------------------------------------------------------------------------------------------
¾Æ·¡ ½º¼¦µéÀº ½ÇÁ¦ ȸéÀÇ ºñÀ²·Î Ãâ·ÂÇÑ °ÍÀÔ´Ï´Ù.
À§ÀÇ ½º¼¦µéÀ» º¸¼ÌµíÀÌ ¾Èµå·ÎÀ̵åÀÇ Æ¯¼ºÁß
Density(¹Ðµµ)¿¡
µû¶ó »óŹÙ, ŸÀÌƲ¹Ù°¡ ´Ù¸¥ Å©±â·Î Ãâ·ÂµÇ´Â °ÍÀ» º¸¼ÌÀ» ²®´Ï´Ù.
»óŹÙ,ŸÀÌƲ¹ÙÀÇ °æ¿ì Å©±â°¡
25dp(25dip)ÀÔ´Ï´Ù.
Debugging ModeÀÇ °æ¿ì ¼Ò½ºÄÚµå·Î µ¹¸° °ÍÀ̱⿡
px´ÜÀ§·Î ³ªÅ³ª Áö´Â °ÍÀä.
¿ÉƼ¸Ó½º¿øÀº 160dip
(density-Indefendent Pixel)À̱⿡
dp:px°¡
1:1ÀÇ ºñÀ²À» °¡Áö¸ç,
°¶·°½ÃS´Â 240dip(density-Indefendent Pixel)À̱⿡ dp:px°¡ 1:1.5ÀÇ ºñÀ²·Î ³ªÅ¸³ª°Ô µÇ¾î
25px°ú 38px·Î °ªÀ» ¾òÀ» ¼ö ÀÖ´Â °ÍÀÔ´Ï´Ù.