问题
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...
回答1:
Android provide lot of way for to do this, using below
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
And refer below also
Tips to Create Android app
回答2:
Go through the following links if you haven't already been through them:
http://developer.android.com/guide/practices/screens_support.html
http://developer.android.com/guide/practices/screens-distribution.html
http://developer.android.com/guide/practices/screen-compat-mode.html
http://developer.android.com/guide/practices/tablets-and-handsets.html
来源:https://stackoverflow.com/questions/8500123/how-to-develop-app-for-mutiple-devices-and-versions-in-android