Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12871] Map rightButton and TableView rightImage not scaling properly in Android

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.2
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterLeor Brenman
AssigneeUnknown
Created2013-02-26T20:07:30.000+0000
Updated2018-02-28T20:03:57.000+0000

Description

I am using images for buttons as well as map pin (rightButton) and TableView (rightImage). Only the button image is scaling properly on different resolution Androids. I even tried to proxy the image through an imageView using getImage() because I suspected that while buttons provide a means for setting height and width, the map and tableview images do not. This did not work. A sample project and screen shots are provided. The image is the same for the button, map pin rightButton and TableView rightImage. But, you can see that as the Android device screen resolution gets higher and higher, only the button image scales appropriately. The others do not (even though they are the same png file).

Attachments

FileDateSize
Android_HVGA.png2013-02-26T20:09:55.000+0000392781
Android_WVGA800.png2013-02-26T20:10:58.000+0000581413
Android_WXGA800-7in.png2013-02-26T20:11:41.000+00001018394
project.zip2013-02-26T20:08:53.000+00002896784

Comments

  1. Leor Brenman 2013-02-26

    Sample project - simple test case
  2. Leor Brenman 2013-02-26

    HVGA Android screen shot - see that all images are the same size as they are the same image
  3. Leor Brenman 2013-02-26

    WVGA Android screen shot - see that the button image scaled nicely bit the others have not
  4. Leor Brenman 2013-02-26

    WXGA Android screen shot - see that the button image scaled nicely bit the others have not and are getting real small

JSON Source