From 325cbd4255d035b7bd72fbc51e88096eaaa03e60 Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期一, 13 一月 2020 17:25:52 +0800
Subject: [PATCH] NDK_start时传递 map和车辆;联网考试项目正在进行考试为粉红色、考试通过为绿色、考试项目失败为红色
---
app/src/main/java/safeluck/drive/evaluation/customview/ArrowView.java | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/app/src/main/java/safeluck/drive/evaluation/customview/ArrowView.java b/app/src/main/java/safeluck/drive/evaluation/customview/ArrowView.java
index 85e3cd7..b2d69f5 100644
--- a/app/src/main/java/safeluck/drive/evaluation/customview/ArrowView.java
+++ b/app/src/main/java/safeluck/drive/evaluation/customview/ArrowView.java
@@ -11,6 +11,7 @@
import android.util.TypedValue;
import android.view.View;
+import androidx.annotation.ColorRes;
import androidx.annotation.Nullable;
import safeluck.drive.evaluation.R;
@@ -44,6 +45,7 @@
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();
}
@@ -76,4 +78,8 @@
}
return keys;
}
+
+ public void setColor( int mColor){
+ this.color = mColor;
+ }
}
--
Gitblit v1.8.0