Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Page Peel effect

Hi

I want if i double click the top view that this one hides.
But if i add the event listener i lose my scrolling and zooming on this webview.

Titanium.UI.setBackgroundColor('#000');

var data = [];

for (var c=0;c<=10;c++)
{

var top = Titanium.UI.createWebView({url:"pdfs/"+(c+1)+".pdf",backgroundColor:'#ff0000',top:0,width:'100%',height:'100%',scalesPageToFit:true});
var bottom = Titanium.UI.createWebView({url:"pdfs/"+(c+1)+"_achter.pdf",backgroundColor:'#ff0000',top:0,width:'100%',height:'100%',scalesPageToFit:true});


var view = Titanium.UI.createView({borderRadius:0,backgroundColor:'red',width:'100%',height:'100%'});
    view.add(bottom);
    view.add(top);

data[c] = view;

/*
view.addEventListener('doubletap',function(e){
     Titanium.API.info("CLICKED SLIDE "+e.target);
    e.target.visible = false
});
*/

}

var scollerWindow = Ti.UI.createScrollableView({views:data,showPagingControl:false});
var window = Ti.UI.createWindow({
barColor:'#5f6062',
title:"Test",
backgroundColor:'#000'}
);

window.add(scollerWindow);
window.open();

— asked August 24th 2010 by Frederik Heyninck
  • effect
  • ipad
  • peel
0 Comments

1 Answer

  • I have the same problem with detecting a click event in a webview with a pdf. Do you found a solution?

    — answered February 20th 2011 by Mario Müller
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.