[TIMOB-5764] Android: Splash screen stretches when orientation modes are set to landscape in app.js
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-07-11T23:03:39.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | n/a |
Components | Android |
Labels | android, gestures, landscape, orientation, orientationmodes |
Reporter | Alan Vaghti |
Assignee | Ingo Muschenetz |
Created | 2011-10-16T11:08:07.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
grouch.jpg | 2011-10-16T11:08:07.000+0000 | 52018 |
Did you add landscape resources in the platform/android or Resources/android/images folder?
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.
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.