| | |
| | | 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.util.TypedValue; |
| | | import android.view.View; |
| | | |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.util.Utils; |
| | | |
| | | /** |
| | |
| | | private float PADDING = Utils.px2dp(40); |
| | | private double a = Math.toRadians(55.0); |
| | | private int color = Color.parseColor("#99C3D1"); |
| | | private String text = "倒车入库"; |
| | | private String text ; |
| | | |
| | | |
| | | |
| | | public HouseView(Context context) { |
| | | super(context); |
| | | this(context,null); |
| | | } |
| | | |
| | | public HouseView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { |
| | | super(context, attrs, defStyleAttr); |
| | | TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ArrowView,defStyleAttr,0); |
| | | text = typedArray.getString(R.styleable.ArrowView_text); |
| | | typedArray.recycle(); |
| | | } |
| | | |
| | | public HouseView(Context context, @Nullable AttributeSet attrs) { |
| | | super(context, attrs); |
| | | this(context, attrs,0); |
| | | } |
| | | |
| | | @Override |