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);
|
}
|
}
|