-
Notifications
You must be signed in to change notification settings - Fork 207
TabSegment
xu.jingyu edited this page Aug 11, 2020
·
7 revisions
TabSegment extends View
标签切换控件
TabSegment(table texts, table items, View progressbar) 构造方法
setAnimation(AnimProperty animType, table fromValue, table toValue)
设置当前的页数
setCurrentIndex(number index)
设置tabSegment当前选中下标
获取tabSegment当前选中下标
onSelected(function func)
点击tabSegment的回调,回调中的参数index为选中的下标
scroll(number fromIndex, number toIndex, number progress)
配合viewPager等使用时需要调用,实现联动效果
bindViewPager(string vpid)
绑定ViewPager