Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

porting common app to alloy problem

$
0
0

Trying to use the "de.marcelpociot.sidemenu" module with alloy but is doesn't seem to work. here is what I have:

index.xml

<Alloy>
    <SideMenu id="win" ns="require('de.marcelpociot.sidemenu')" >
    </SideMenu>
</Alloy>

index.js

var contentView = Ti.UI.createWindow({
    background: 'red'
});
 
var menuView    = Ti.UI.createWindow({
    background: 'blue'
});
 
    $.win.contentView=contentView;
    $.win.menuView=menuView;
    $.win.backgroundImage='stars.png';
    $.win.contentViewScaleValue=0.2;
    $.win.scaleContentView=true;     
    $.win.panGestureEnabled=false;   
    $.win.scaleBackgroundImageView=false;
    $.win.parallaxEnabled=false;
    // Blur settings
    $.win.blurBackground=true;
    $.win.tintColor='#ffffff';
    $.win.radius=20;
    $.win.iterations=10;
 
 
 
$.win.open();

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>