admin
2020-10-14 b2fc802bf35143ed957a86d95e2de49934ea9ea5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.youku.player.plugin;
 
import java.util.ArrayList;
 
import com.youku.player.goplay.Point;
 
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.SeekBar;
 
public class PointSeekbar extends SeekBar {
 
    ArrayList<Point> points = new ArrayList<Point>();
 
    public PointSeekbar(Context context) {
        super(context);
    }
 
    public PointSeekbar(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
 
    public PointSeekbar(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }
 
    public void setPoints(ArrayList<Point> points) {
        if (points != null) {
            this.points.clear();
            this.points.addAll(points);
        }
    }
    
    @Override
    protected synchronized void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        
        drawPoints();
        
        
    }
 
    private void drawPoints() {
        
    }
 
}