new XUIHorProgressBar()
Methods
-
GetProgressBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetProgressBgImage() → {String}
-
获取背景图片路径
Returns:
String -
GetProgressValue() → {Number}
-
获取进度条值
Returns:
Number -
IsShowIconImage() → {Boolean}
-
获取是否显示icon图片
Returns:
Boolean -
IsShowProgressBgImg() → {Boolean}
-
获取是否显示进度条背景图片
Returns:
Boolean -
SetAutoPlay()
-
设置进度条自动播放
-
SetBorderRadius(nRadius)
-
设置进度条的圆角半径
Parameters:
Name Type Description nRadius
Number Properties:
Name Type Description BorderRadius
Number 0 -
SetIconHorPos(nPos)
-
设置图片自身横向偏移值
Parameters:
Name Type Description nPos
Number Properties:
Name Type Description ProgressIconImgHorPos
Number 54 -
SetIconSize(nWidth, nHeight)
-
设置图片大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description ProgressIconImgSize
Collection [20.15, 30] -
SetIconVerPos(nPos)
-
设置图片竖直偏移量
Parameters:
Name Type Description nPos
Number Properties:
Name Type Description ProgressIconImgVerPos
Number 34 -
SetImgPadding(strTop, strRight, strBottom, strLeft)
-
设置图片的间距
Parameters:
Name Type Description strTop
String 距上百分比 strRight
String 距右百分比 strBottom
String 距下百分比 strLeft
String 距左百分比 Properties:
Name Type Description ImgPadding
Collection ["0.9%","0px","0.3%","5px"] -
SetPadding(nPadding)
-
设置两边的间距
Parameters:
Name Type Description nPadding
Number Properties:
Name Type Description Padding
Number 7 -
SetPlayStop()
-
清除进度条自动播放
-
SetProgressAnimation(nTime)
-
开启动画
Parameters:
Name Type Description nTime
Number 动画周期 -
SetProgressBgColor(strColor)
-
设置背景颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description ProgressBgColor
Color "" -
SetProgressBgImage(strPath)
-
设置背景图片
Parameters:
Name Type Description strPath
ImageProp Properties:
Name Type Description ProgressBgImgPath
ImageProp "NUODT_JTFA/XUIHorProgressBar/images/loading_pro.png" -
SetProgressBgImgSize(strSize)
-
进度条背景大小
Parameters:
Name Type Description strSize
String 大小 Properties:
Name Type Description ProgressBgImgSize
Combo ["cover","100%","auto"] -
SetProgressColorInterval(nInter)
-
设置进度条颜色间隔
Parameters:
Name Type Description nInter
Number 间隔 Properties:
Name Type Description ProgressColorInterval
Number 40 -
SetProgressEndIconColor(strColor)
-
进度条末端icon颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ProgressEndIconColor
Color "0x00000000" -
SetProgressGradualColor(strColorStart, strColorEnd)
-
设置进度条的渐变色
Parameters:
Name Type Description strColorStart
String 起始色 strColorEnd
String 结束色 Properties:
Name Type Description ProgressGradualColor
Collection ["0x10ffffff","0x00000000"] -
SetProgressHeight(nHight)
-
设置进度条的高度
Parameters:
Name Type Description nHight
Number Properties:
Name Type Description ProgressHeight
Number 14 -
SetProgressIconImgPath(strPath)
-
进度条icon图片路径
Parameters:
Name Type Description strPath
ImageProp Properties:
Name Type Description ProgressIconImgPath
ImageProp "NUODT_JTFA/XUIHorProgressBar/images/loading_tank.gif" -
SetProgressMainColor(strColor)
-
设置进度条的主颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description ProgressMainColor
Color "0xff337AB7" -
SetProgressSubColor(strColor)
-
设置进度条的副颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description ProgressSubColor
Color "0x10ffffff" -
SetProgressValue(nValue)
-
设置进度条值
Parameters:
Name Type Description nValue
Number Properties:
Name Type Description ProgressValue
Number 50 -
SetProgressVerPos(nPos)
-
设置进度条竖直偏移距离
Parameters:
Name Type Description nPos
Number Properties:
Name Type Description VerPos
Number 60 -
SetShowIconImage(bShow)
-
是否显示icon图片
Parameters:
Name Type Description bShow
Boolean Properties:
Name Type Description ShowProgressIconImg
Boolean true -
SetShowProgressBgImg(bShow)
-
是否显示背景图
Parameters:
Name Type Description bShow
Boolean Properties:
Name Type Description ShowProgressBgImg
Boolean true