DeteMin
2020-03-31 77c62e023d2dc31200fc696158df84b3aee90ee7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.basic.security.widget;
 
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.TextView;
 
@SuppressLint("AppCompatCustomView")
public class MyTextView extends TextView {
 
    public int textColor;
 
    public MyTextView(Context context) {
        super(context);
    }
 
    public MyTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }
 
    public MyTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
 
    public MyTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }
 
    public void setTextColor1(int textColor) {
        this.textColor = textColor;
    }
 
    public int getCurrentTextColor1() {
        return this.textColor;
    }
}