Search code examples
androiduser-interfacetablet

Creating Android Application for tablet


I already have the source code for a mobile application in Android. Using that source code I want to create a tablet version for the same application. What are the steps that I can follow and what aspects should I keep in mind while making the UI for the tablet version?

Note : I have never made a tablet application before.


Solution

  • To create app for all size you need should follow below point. It will help.

    1. You need to create set you layout for all layout.

    2. Ignore static value in your xml like margin, padding etc. if its necessary then use dimen.xml in your value folder.

    3. Please refer below link of android: http://developer.android.com/guide/practices/screens_support.html

    4. If necessary then use image (png).
    5. Try to use css(create xml) for selector and background. its auto manage for all layout.
    6. Try to use 9 patch images.
    7. Give support for all screen in manifest file

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

    Android supporting multiple resolution with multiple layout folder

    Tutorial: http://wptrafficanalyzer.in/blog/different-layouts-for-different-screen-sizes-in-android/