1

I am developing an application for an Android Phone and Tablet. Now the UI's for both phones will be different. Does it make sense to create two different projects for both devices, or would it make more sense to use a single project and use different layouts ?

Kind Regards

user1730789
  • 5,157
  • 8
  • 36
  • 57
  • 2
    Single project, different layouts. – Raghav Sood Mar 19 '13 at 13:29
  • Depends alot on if the components on screen are completely different or just in a different layout. And if there are any other differences than just the visual part. By default, I would say: Choose the right layout accordint to screensize – Gjordis Mar 19 '13 at 13:29

4 Answers4

4

It is better to use a single project with different layouts, unless the phone and tablet UIs are so different that they are essentially different applications.

Note that you may need even more than two layouts, to support different sizes of phones and tablets, different resolutions, different orientations, etc. Much better to have all of those in one project than to have lots of projects.

Also note that if you use two projects, you would have to distribute two different apps in Google Play, which customers would probably find confusing.

Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
  • You could probably use version targeting to have the right customers see only the version you want them to see, but you still wouldn't want to do that. – CorayThan Feb 27 '14 at 09:27
4

There are number of way to handle Different screen size device in one application

Like

  1. Handling by different Drawable folder Check this

  2. By handling different Drawable Layout Check this

  3. By coding get the size of device and change some UI according it.(Which is hard task)

Which is depends on number of parameters like Graphics of application, size of application etc

Sometimes you have to use both different Drawable Folder and different Dravable Layout for better application performance

Use according to your use

Community
  • 1
  • 1
Chirag Patel
  • 11,416
  • 3
  • 26
  • 38
0

You do not need to make different projects for both devices. You need to make different - 2 layout for different - 2 resolution device. read below document :-

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

also see below link:-

Most popular screen sizes/resolutions on Android phones

Community
  • 1
  • 1
duggu
  • 37,851
  • 12
  • 116
  • 113
0

There are many ways for application developes to support various devices. The best reference is that. Read this and you will understand that you don' t have to create two different projects.

Alpay
  • 1,350
  • 2
  • 24
  • 56