Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2918] Android View Parity Issue

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2012-06-11T11:59:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsview
ReporterFrank Apap
AssigneeEduardo Gomez
Created2012-06-08T07:38:33.000+0000
Updated2016-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);

Comments

  1. Frank Apap 2012-06-11

    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.
  2. Eduardo Gomez 2012-06-11

    @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.
  3. Frank Apap 2012-06-11

    The case can be closed. I'll enter a separate ticket (under the proper name) for the module issue once I fully qualify it.
  4. Eduardo Gomez 2012-06-11

    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.

JSON Source