tag:blogger.com,1999:blog-89878749563391212.post8777869790563986575..comments2024-03-14T00:13:01.346-07:00Comments on Android-er: Handle different layout for phone and tablet, load fragment in Java code vs XMLUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-89878749563391212.post-83516349631267922452013-07-23T03:18:08.174-07:002013-07-23T03:18:08.174-07:00Hello,
As I remember, Google post recently not to...Hello,<br /><br />As I remember, Google post recently not to determine determine device by tablet/phone. (I forgot the source).<br /><br />Developer should determine based on the amount of space, such as sw600dp, sw720dp.<br /><br />from Google document:<br /><i>For the first generation of tablets running Android 3.0, the proper way to declare tablet layouts was to put them in a directory with the xlarge configuration qualifier (for example, res/layout-xlarge/). In order to accommodate other types of tablets and screen sizes—in particular, 7" tablets—Android 3.2 introduces a new way to specify resources for more discrete screen sizes. The new technique is based on the amount of space your layout needs (such as 600dp of width), rather than trying to make your layout fit the generalized size groups (such as large or xlarge).</i><br /><br />~ reference: http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayoutsErikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-91575507358668404882013-07-21T06:42:16.932-07:002013-07-21T06:42:16.932-07:00how strictly determine layouts for any phone and a...how strictly determine layouts for any phone and any tablet?Жопаhttps://www.blogger.com/profile/03969520386580190445noreply@blogger.com