ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


¸ÖƼ ÇØ»óµµ [Android]
7³â Àü
As it has been mentioned before, you do not want to check whether the device is a tablet or a phone but you want to know about the features of the device,

Most of the time, the difference between a tablet and a phone is the screen size which is why you want to use different layout files. These files are stored in the res/layout-<qualifiers> directories. You can create an XML file in the directoy res/values-<same qualifiers> for each of your layouts and put an int/bool/string resource into it to distinguish between the layouts you use.

Example:

File res/values/screen.xml (assuming res/layout/ contains your layout files for handsets)

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="screen_type">phone</string>
</resources>

File res/values-sw600dp/screen.xml (assuming res/layout-sw600dp/ contains your layout files for small tablets like the Nexus 7)

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="screen_type">7-inch-tablet</string>
</resources>

File res/values-sw720dp/screen.xml (assuming res/layout-sw720dp/ contains your layout files for large tablets like the Nexus 10):

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="screen_type">10-inch-tablet</string>
</resources>

Now the screen type is accessible via the R.string.screen_type constant.


http://stackoverflow.com/questions/5832368/tablet-or-phone-android
ÃßõÃßõ : 217 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
97
ffmpeg ¿ÀÇ ¼Ò½º on ¾Èµå·ÎÀ̵å
96
WebView¿¡¼­ <a> ű×ÀÇ "_blank" target ó¸®Çϱâ.
95
MediaPlayer 5¹ø¸¸ ¹Ýº¹Àç»ý
94
ÆÄÀÏ À§Ä¡¿¡ µû¸¥ ¹Ìµð¾î Àç»ý »ùÇÃÄÚµå
93
MJPEG on Android anyone?
92
Android °³¹ß
91
¾Èµå·ÎÀ̵å : ¾×ƼºñƼ ¶óÀÌÇÁ »çÀÌŬ (Activity Life Cycle)
90
¾Èµå·ÎÀ̵å ÇÁ·Î±×·¥ ÄÚµå·Î À¥ ºê¶ó¿ìÀú ½ÇÇàÇϱ⠿¹Á¦ (ÀÎÅÙÆ® »ç¿ë)
89
Áøµ¿ È¿°ú [Android]
88
Á¾·á ´ÙÀ̾ó·Î±× [Android]
87
´Ù¸¥¾Û È£Ãâ [Android]
86
TabActivity back key Event [Android]
85
³×Æ®¿öÅ© »óÅ [Android]
84
¾Èµå·ÎÀ̵忡¼­ À¥¼­¹ö¿¡ post·Î ±Û¾²±â [Android]
83
Webview ¼Ò½º [Android]
82
Coach mark View [Android]
¸ÖƼ ÇØ»óµµ [Android]
80
Webview source [Android]
79
°øÀ¯ Intent [Android]
78
intent uri ¸ðÀ½ [Android]
77
http post [Android]
76
http ¿äû [Android]
75
Android WebView Facebook Login (popup/redirection issues)
74
Loading GIF [Android]listView ¿ø°ÝÀ̹ÌÁö [Android]
73
¾Û ¹öÀü üũ ½ºÅä¾î·Î À̵¿ [Android]
72
WebViewClient [Android]
71
http post get Àü¼Û
70
À¥ºä ¸Þ¼Òµå È£ÃâÀÌ ¾ÈµÉ ¶§ (android.permission.INTERACT_ACROSS_USERS_FULL)
69
°³¹ß Áß ¿¡·¯ ¹ß»ý½Ã ¿¡·¯ ³»¿ë È®ÀÎ, ÇØ°á¹æ¹ý [Android]
68
ij½Ã Áö¿ì±â [Android]
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.