Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5764] Android: Splash screen stretches when orientation modes are set to landscape in app.js

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-11T23:03:39.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, gestures, landscape, orientation, orientationmodes
ReporterAlan Vaghti
AssigneeIngo Muschenetz
Created2011-10-16T11:08:07.000+0000
Updated2017-07-11T23:03:39.000+0000

Description

1) Create a new project and add the following to the app.js
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var img = Ti.UI.createImageView({image:'grouch.jpg'});

win.add(img);

win.orientationModes = [
    Ti.UI.LANDSCAPE_LEFT,
    Ti.UI.LANDSCAPE_RIGHT
];

win.open();
2) Put the attached grouch.jpg in the Resources folder 3) Hold device in portrait mode and launch app Actual results: Splash screen initially appears in portrait mode and then stretches into landscape mode. Image and status bar appear normally in landscape mode. Expected results: Splash screen appears in portrait mode. Image and status bar appear in landscape mode.

Attachments

FileDateSize
grouch.jpg2011-10-16T11:08:07.000+000052018

Comments

  1. Don Thorp 2011-10-16

    Did you add landscape resources in the platform/android or Resources/android/images folder?
  2. Alan Vaghti 2011-10-16

    No, I didn't add anything to either of those folders. Is it required? Just as a note, this app works as described in the expected behavior on iOS.
  3. Lee Morris 2017-07-11

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source