version:1.8.9
fix: update:密码界面统一,增加权限说明页面
This commit is contained in:
@@ -2,7 +2,6 @@ package com.tuo.customview;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Paint;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
@@ -33,7 +32,6 @@ public class PwdTextView extends AppCompatTextView {
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
super.onDraw(canvas);
|
||||
@@ -41,7 +39,7 @@ public class PwdTextView extends AppCompatTextView {
|
||||
if (hasPwd) {
|
||||
// 画一个黑色的圆
|
||||
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
|
||||
paint.setColor(Color.WHITE);
|
||||
paint.setColor(getResources().getColor(R.color.circle_f));
|
||||
paint.setStyle(Paint.Style.FILL);
|
||||
canvas.drawCircle(getWidth() / 2, getHeight() / 2, radius, paint);
|
||||
}else {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="circle_bg">#2a2c36</color>
|
||||
<color name="circle_bg">#C6C5C5</color>
|
||||
<color name="circle_f">#0480ff</color>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user