3

I am new to mobile development with Titanium Studio. I am developing an app for android. When I tried running it in WXGA720 screen emulator, which was looking good. But when I tried the same with WXGA800-7in screen emulator, it looks terrible. Below is the screenshot for your reference.

  1. Screenshot from WXGA720:

WXGA720 screen

  1. Screenshot from WXGA800-7in:

tabgroup abnormal size in WXGA800-7in

Please suggest. Thanks in advance.

balanv
  • 10,686
  • 27
  • 91
  • 137

2 Answers2

1

In Titanium when developing for Android, it uses same image for TabGroups. Bigger the image specified, bigger it will show up in the app. My solution was using different images for different devices.

Android let you do that automatically by different device profiles.

If you look at Resources/android/images, there are several directories like:

  • res-long-land-hdpi
  • res-long-land-ldpi
  • res-long-port-hdpi
  • res-long-port-ldpi
  • res-notlong-land-hdpi
  • ...

Please check here for a complete description.

Blumer
  • 5,005
  • 2
  • 33
  • 47
Roozbeh Zabihollahi
  • 7,207
  • 45
  • 39
0

I found a way to rectify this issue, as i would like to have my application only for Galaxy S3 and Nexus 7.

I wrote code to detect the screen size of Nexus 7 (height=1216 && width=800) and dynamically set the tab icon, i used smaller size tab icons for Nexus.

balanv
  • 10,686
  • 27
  • 91
  • 137