实现Android圆环形的滑动条:AndroidCircularSeekBar
jopen
11年前
AndroidCircularSeekBar实现Android圆环形的滑动条。
用法示例:
public class Welcome extends Activity { CircularSeekBar circularSeekbar; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); circularSeekbar = new CircularSeekBar(this); circularSeekbar.setMaxProgress(100); circularSeekbar.setProgress(100); setContentView(circularSeekbar); circularSeekbar.invalidate(); circularSeekbar.setSeekBarChangeListener(new OnSeekChangeListener() { @Override public void onProgressChange(CircularSeekBar view, int newProgress) { Log.d("Welcome", "Progress:" + view.getProgress() + "/" + view.getMaxProgress()); } }); } }