如何开发应用程序的多发设备和版本的Android中 [英] How to develop app for mutiple devices and versions in android
问题描述
我在开发的GalaxyS 2.3.3版本的应用程序,我想的Galaxy Tab也与相同版本的这个应用程序是什么一步我必须遵循任何人可以帮助如何设置在XML布局版本...
I developed an application in galaxys version 2.3.3 and i want this app on galaxy tab also with same version what is step i have to follow can anybody help how to setup layout versions in xml...
推荐答案
的Android提供很多方式为做到这一点,使用下面
Android provide lot of way for to do this, using below
有关支持所有版本中,您必须在清单中的API版本像
For supporting all versions, you must set the API versions in manifest like
<uses-sdk android:minSdkVersion="API version" />
<uses-sdk android:manSdkVersion="API version" />
<uses-sdk android:targetSdkVersion="API version" />
有关支持所有设备,如平板电脑也意味着你必须创建像绘制文件夹,然后将影像传输到本文件夹与所需的大小
For supporting all devices, such as tablet also means you must create drawable folders like and place the images to this folders with needed size
res/drawable-ldpi
res/drawable-mdpi
res/drawable-hdpi
res/drawable-xhdpi
,你也必须创建一个像
and also you must create the layouts like
res/layout/my_layout.xml
res/layout-small/my_layout.xml
res/layout-large/my_layout.xml
res/layout-xlarge/my_layout.xml
res/layout-xlarge-land/my_layout.xml
和参考下也
这篇关于如何开发应用程序的多发设备和版本的Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!