2020
10-30
10-30
Android开发TextvView实现镂空字体效果示例代码
记录一下...自定义TextViewpublicclassHollowTextViewextendsAppCompatTextView{privatePaintmTextPaint,mBackgroundPaint;privateBitmapmBackgroundBitmap,mTextBitmap;privateCanvasmBackgroundCanvas,mTextCanvas;privateRectFmBackgroundRect;privateintmBackgroundColor;privatefloatmCornerRadius;publicHollowTextView(Contextcontext){this(context,null);}publicHollowTex...
继续阅读 >