摘要: 先来个截图:在来看看自定义的TextView: 1 public class MyTextView extends TextView 2 { 3 4 public MyTextView(Context context, AttributeSet attrs) 5 { 6 super(context, attrs); 7 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MyTextView); 8 float textSize = a.getDime... 阅读全文