From ed0bc77b9c7168b8c3690f018da9aef230e34c61 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期二, 14 一月 2020 11:17:26 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/endian11/DriveJudge
---
app/src/main/java/safeluck/drive/evaluation/customview/HouseView.java | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/app/src/main/java/safeluck/drive/evaluation/customview/HouseView.java b/app/src/main/java/safeluck/drive/evaluation/customview/HouseView.java
index 6fb30bd..f350d35 100644
--- a/app/src/main/java/safeluck/drive/evaluation/customview/HouseView.java
+++ b/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();
+ }
}
--
Gitblit v1.8.0