3
在Titanium中,如何添加視圖在指定的位置?像android adk中的方法addView(view,index);在Titanium中,如何在指定位置添加視圖
在Titanium中,如何添加視圖在指定的位置?像android adk中的方法addView(view,index);在Titanium中,如何在指定位置添加視圖
var r_view = Ti.UI.createView({
top:2,
height:100,
width:Ti.Platform.displayCaps.platformWidth,
borderColor:'#225A94',
backgroundColor:'#EEF5FB',
borderRadius:8,
borderWidth:1
});
//Add in window name
win.add(r_view);
var new_view = Ti.UI.createView({
top:20,
left:20,
height:200,
width:200,
backgroundColor:'#000000'
});
//Add this to window
win.add(new_view)
無用答案。 – 2012-02-20 09:28:05