[AC-2918] Android View Parity Issue
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-06-11T11:59:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | view |
Reporter | Frank Apap |
Assignee | Eduardo Gomez |
Created | 2012-06-08T07:38:33.000+0000 |
Updated | 2016-03-08T07:47:54.000+0000 |
Description
The following code is meant to replicate an issue I'm having showing ads on Android. Basically if I render the ad off the screen and then move to display it nothing shows up. As seen below it has nothing to do with the ads themselves as the issue occurs with just a plain view. This works on IOS. On iOS a blue bar with an image loads up after 2 seconds. On Android, nothing, no blue bar and no image.
app.js
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
navWindow = Ti.UI.createWindow();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff',
layout:'vertical'
});
var view = Ti.UI.createView({
height:Ti.Platform.displayCaps.platformHeight,
backgroundColor:'red'
});
win1.add(view);
var view2 = Ti.UI.createView({
backgroundColor:'blue',
height:0
});
var img = Ti.UI.createImageView({
image:'KS_nav_ui.png'
}) ;
view2.add(img);
win1.add(view2);
win1.open();
setTimeout(function(){
view.height=Ti.Platform.displayCaps.platformHeight-75;
view2.height=75;
},2000);
Hi I was the person who added this, it can be resolved, it was an error on my part. There still does seem to be an issue but it's specific to admob ads not views in general.
@Frank Apap Please update test case if its still a parity bug. Otherwise upload ZIP project sample so we can replicate this module issue quicker.
The case can be closed. I'll enter a separate ticket (under the proper name) for the module issue once I fully qualify it.
Okay, closing. You can create any time a jira ticket attaching resources and adding all pertinent comments so we can dig into it pretty further.