[TIMOB-9931] Android: Tab group doesn't respect transparent on Android, works on iOS.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-04-01T18:29:54.000+0000 |
Affected Version/s | Release 2.1.0, Release 3.1.0 |
Fix Version/s | Backlog |
Components | Android |
Labels | core, exalture, parity |
Reporter | Neville Dastur |
Assignee | Sunila |
Created | 2012-07-01T03:18:34.000+0000 |
Updated | 2017-03-28T21:09:08.000+0000 |
Description
In app.js set
Ti.UI.backgroundImage = '/bg.png';
On iOS:
var self = Titanium.UI.createWindow({ title: 'Window' });
for the window inside the tab will allow the bg.png image to show through
On Android the background image needs to be set.
Both
var self = Titanium.UI.createWindow({ title: 'Window' });
and
var self = Titanium.UI.createWindow({ title: 'Window', backgroundImage: 'transparent' });
do not work on android
Attachments
File | Date | Size |
---|---|---|
android.png | 2013-03-08T08:46:02.000+0000 | 12585 |
iphone.PNG | 2013-03-08T08:46:02.000+0000 | 167222 |
The problem reproduces with release 3.0.2 and master release 3.1.0 tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 iOS iPhone Simulator: iOS SDK version: 6.0 But it works fine on ios emulator . I have attached screenshots
In Android, tabgroup are heavyweight windows having their own activity.Setting Ti.UI.backgroundImage sets the backgroundImage on the RootActivity window which doesn't affect the TabGroup activity. If all the tabs needs the same background image, set the backgroundImage of the tabgroup. eg. Titanium.UI.createTabGroup({backgroundImage:'/bg.png'});
Closing ticket as invalid.