是否可以在pagingControl
中使用自定义颜色或图像作为Titanium.UI.Scrollableview
的白点?
var scrollableView =Titanium.UI.createScrollableView({
views:[view1,view2,view3],
showPagingControl:true,
pagingControlHeight:30,
pagingControlColor:'transparent',
width : 200,
height : 90,
left : 120,
top:40,
maxZoomScale:2.0,
currentPage:0
});
答案 0 :(得分:1)
在http://developer.appcelerator.com/question/130397/color-pages-dot-in-a-titaniumuiscrollableview#227004上找到答案(如你所说):
抱歉,我没有一个例子..但是就是这样:创建容器视图。
然后创建小的“点”视图,并将它们添加到容器视图中。设定位置。
有一个事件,当可滚动视图“滚动”或更改..并且您可以将小点视图设置为活动状态(当然您也应该设置活动状态)