How do I resolve the following conflict in tablets?

那年仲夏 提交于 2019-12-02 18:49:46

问题


I have developed an Android application for both handsets and tablets. It has been running in both emulators. While I am running in the tablet emulator the size of widgets are filling the screen. What should I do solve this conflict?


回答1:


You can make two different layouts for handlet and tablets in res/layout (for handlet) and res/layout-large (for tablet). Layout file name must be same. More explanation and other methods you can found here:

http://developer.android.com/guide/practices/screens_support.html




回答2:


I think you should better check it in the Developer's website, where you have all the information. Here it is http://developer.android.com/guide/practices/screens_support.html

<supports-screens 
    android:resizeable="true" 
    android:smallScreens="true" 
    android:normalScreens="true" 
    android:largeScreens="true" 
    android:anyDensity="true"/>


来源:https://stackoverflow.com/questions/12623009/how-do-i-resolve-the-following-conflict-in-tablets

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!