| | |
| | | import android.util.TypedValue; |
| | | import android.view.View; |
| | | |
| | | import androidx.annotation.ColorRes; |
| | | import androidx.annotation.Nullable; |
| | | |
| | | import safeluck.drive.evaluation.R; |
| | |
| | | super(context, attrs, defStyleAttr); |
| | | TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ArrowView,defStyleAttr,0); |
| | | text = a.getString(R.styleable.ArrowView_text); |
| | | color = a.getColor(R.styleable.ArrowView_color,Color.parseColor("#99C3D1")); |
| | | a.recycle(); |
| | | } |
| | | |
| | |
| | | } |
| | | return keys; |
| | | } |
| | | |
| | | public void setColor( int mColor){ |
| | | this.color = mColor; |
| | | requestLayout(); |
| | | } |
| | | } |