endian11
2019-09-11 ae292cb4f4a67e16465b732e26b408955b4407f5
app/src/main/java/safeluck/drive/evaluation/customview/ArrowView.java
@@ -1,6 +1,7 @@
package safeluck.drive.evaluation.customview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
@@ -10,8 +11,10 @@
import android.text.StaticLayout;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import safeluck.drive.evaluation.R;
import safeluck.drive.evaluation.util.Utils;
/**
@@ -31,15 +34,18 @@
    private Path textPath = new Path();
    public ArrowView(Context context) {
        super(context);
        this(context,null);
    }
    public ArrowView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        this(context, attrs,0);
    }
    public ArrowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ArrowView,defStyleAttr,0);
        text = a.getString(R.styleable.ArrowView_text);
        a.recycle();
    }
    @Override