Skip to content

CustomApi

谷进杰 edited this page Jul 3, 2019 · 3 revisions

Custom(自定义)

RangeSeekBar exposes almost all attributes and methods,so it supports free customization. The VerticalRangeSeekBar and VerticalSeekBar are good examples of customization.

RangeSeekBar几乎暴露出所有属性和方法,因此它支持自由定制。 VerticalRangeSeekBarVerticalSeekBar是很好的自由定制的例子。

Main Methods(主要的方法)

RangeSeekBar

  • onDrawTickMark(Canvas canvas, Paint paint) Draw the tick mark. 绘制刻度相关
  • onDrawProgressBar(Canvas canvas, Paint paint) Draw the progress bar. 绘制进度条相关
  • onDrawSteps(Canvas canvas, Paint paint) Draw the steps views. 绘制分步的View
  • onDrawSeekBar(Canvas canvas) Draw the left and right SeekBar. 绘制左右SeekBar

SeekBar

  • onDrawThumb(Canvas canvas) draw the thumb button. 绘制按钮
  • onDrawIndicator(Canvas canvas, Paint paint, String text2Draw) Draw the indicator. 绘制指示器相关
  • draw(Canvas canvas) Draw the SeekBar. 绘制SeekBar