app/src/main/java/safeluck/drive/evaluation/customview/HouseView.java
@@ -41,6 +41,7 @@ super(context, attrs, defStyleAttr); TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ArrowView,defStyleAttr,0); text = typedArray.getString(R.styleable.ArrowView_text); color = typedArray.getColor(R.styleable.ArrowView_color,Color.parseColor("#99C3D1")); typedArray.recycle(); } @@ -76,4 +77,9 @@ } return keys; } public void setColor(int mColor){ this.color = mColor; requestLayout(); } }