当前位置:   article > 正文

Android自定义View(四)Paint的常用方法_android paint theme

android paint theme

    Paint相当于Android中的画笔,Paint的主要功能包括如下:

方法方法说明
setAntiAlias(boolean aa)设置画笔的锯齿效果
setColor(int color)设置画笔的颜色
setARGB(int a, int r, int g, int b)设置画笔的A、R、G、B值
setAlpha(int a)设置画笔的Alpha值
setTextSize(float textSize)设置字体的尺寸
setStyle(Style style)设置画笔的风格(空心或实体)
setStrokeWidth(float width)设置空心边框的宽度

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/765509
推荐阅读
相关标签
  

闽ICP备14008679号