日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

titanium开发教程-04-10移动rows

發布時間:2023/12/18 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 titanium开发教程-04-10移动rows 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

android無法運行

?

// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000');// create tab group var tabGroup = Titanium.UI.createTabGroup();var win = Titanium.UI.createWindow({ title:"Main Window",backgroundColor:"#FFFFFF",//navBarHidden:true, //Hide the nav bar for the windowtabBarHidden:true //Hide the tab bar for the window }); var tab = Titanium.UI.createTab({ icon:"KS_nav_views.png",title:"Main Tab",window:win });var data = [{title:"Backpack Cal", leftImage:"images/01-backpack-cal-thumb.png", className:"tableRow", hasCheck:true},{title:"California Calm", leftImage:"images/02-calm-cal-thumb.png", className:"tableRow", hasDetail:true},{title:"California Hotsprings", leftImage:"images/03-hotsprings-cal-thumb.png", className:"tableRow", hasChild:true},{title:"Cycle California", leftImage:"images/04-cycle-cal-thumb.png", className:"tableRow"},{title:"From Desert to Sea", leftImage:"images/05-desert-cal-thumb.png", className:"tableRow"},{title:"Kids California", leftImage:"images/06-kids-cal-thumb.png", className:"tableRow"},{title:"Nature Watch", leftImage:"images/07-nature-watch-cal-thumb.png", className:"tableRow"},{title:"Snowboard Cali", leftImage:"images/08-snowboard-cal-thumb.png", className:"tableRow"},{title:"Taste of California", leftImage:"images/09-taste-cal-thumb.png", className:"tableRow"} ]var tableView = Titanium.UI.createTableView({data:data,editable:true,allowsSelectionDuringEditing:true});//Tap a row to delete it tableView.addEventListener("click",function(e){//Switch between the editing and non-editing modeif(!tableView.editing){tableView.editing = true;}else{tableView.editing = false;}})//Restore the row; exit editing mode tableView.addEventListener("delete",function(e){tableView.editing = false;//Show the index of the row after it has been movedalert(e.index); })win.add(tableView);tabGroup.addTab(tab); // open tab group tabGroup.open();

轉載于:https://www.cnblogs.com/xiaozhanga4/archive/2012/03/17/2403319.html

總結

以上是生活随笔為你收集整理的titanium开发教程-04-10移动rows的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。