摘要:运行效果:app.js代码:Titanium.UI.setBackgroundColor('#000');var win1 = Titanium.UI.createWindow({ backgroundColor:'#000'});//创建2D矩阵var tr = Titanium.UI.create2DMatrix();tr = tr.rotate(90);//创建下拉效果的Buttonvar drop_button = Titanium.UI.createButton({ style:Titanium.UI.iPhone.SystemButton.DISCL
阅读全文
摘要:效果:Titanium中列表显示需要创建TableView var tableView = Ti.UI.createTableView({ style: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE //TableView样式 });TableView的每一个行叫做TableViewRow设置TableViewRow的hasChild为true便可显示这样的效果:点击HasChild行进入列表显示画面(图2)需要添加点击事件 tablerow.addEventListener('click', function() ...
阅读全文
摘要:关于TitaniumAbout Appcelerator Appcelerator’s Titanium is the leading mobile platform of choice for thousands of companies seizing the mobile opportunity. With more than 35,000 applications deployed on 40 million devicesTitanium号称是领先的移动开发平台,成为成千上万的企业移动开发选择。已经超过35,000个应用程序部署在40万台设备上下载地址:https://my.appc
阅读全文