a
554325746@qq.com
2019-12-25 603cb36a5123e46656b06a5deb8d7ac7ff81307f
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 setMeasuredDimension1(int measuredWidth, int measuredHeight) {
        setMeasuredDimension(measuredWidth, measuredHeight);
    }
 
    public void setTextColor1(int textColor) {
        this.textColor = textColor;
    }
 
    public int getCurrentTextColor1() {
        return this.textColor;
    }
 
    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
 
    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
    }
 
    public void setText1(CharSequence text) {
//        System1.out.println("MyTextView.setText1 text="+ text + FrameUtil.getFrames());
        super.setText(text);
    }
}