摘要:
引入属性的两种命名空间方式:xmlns:yournamespace="http://schemas.android.com/apk/res/包名"或者 xmlns:yournamespace="http://schemas.android.com/apk/res-auto"因为命名空间引入错误,不会... 阅读全文
摘要:
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, mTextSize, context.getResources().getDisplayMetrics())a.getDimensionPixelSize(R.styleable.... 阅读全文
摘要:
Rect rect= new Rect();Paint textPaint = new Paint(Paint.ANTI_ALIAS_FLAG);textPaint.setTextAligh(Paint.Align.Right);textPaint.setTextSize(12);textPaint... 阅读全文