| | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | 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 |