English 中文(简体)
如何宣布布局为7英寸?
原标题:How to declare the layout for 7 inch tablet Android?
  • 时间:2011-10-14 04:35:44
  •  标签:
  • android

我正在拟定关于10英寸的申请书;7英寸的申请书。

在去7英寸时,它不为我工作,我使用的表格是(iRobot)。

最佳回答

在你希望进一步定制“国际倡议”的罕见情况下,例如7个表格“10个”,你还可以界定最小的宽度:

res/layout/main_activity.xml           # For phones
res/layout-sw600dp/main_activity.xml   # For 7” tablets
res/layout-sw720dp/main_activity.xml   # For 10” tablets

仅检查7个“10个”表:-

http://android-developers.blogspot.com/2011_07_01_archive.html” rel=“noreferer”>.

问题回答

页: 1 如同这一点一样。

  1. layout-1280x800
  2. layout-port-1280x800

As per new approach discussed here, New Tools For Managing Screen Sizes
we can specify like this

  1. layout For phones
  2. layout-sw600dp # For 7” tablets
  3. layout-sw720dp # For 10” tablets

但是,如果你正在建造亚马逊装置,则你会这样做。

  • kindle fire 7" uses layout-large-mdpi
  • kindle fire 7" HD uses layout-large-hdpi

A. 与其他roid装置一起 第7条

http://android-developers.blogspot.mx/201107/new-tools-for-managing- Screen-sizes.html>rel=“noreferer”>Android:

<> 火灾:筛查和决议

  • 电话:

    <><>>>>>

  • <>9>

    <>strong>layout-sw600dp

  • <>9>

    <>strong>layout-sw720dp

  • kindle fire 7":

    <>strong>layout-large-mdpi

  • kindle fire 7"HD :

    <>strong>layout-large-hdpi

It s because your using a "cheap" (inexpensive) 7-inch tablet 480x800, so it will use sw360 up to 430dp.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签