Paint paint = new Paint(); 

paint.setColor(Color.BLUE); 
paint.setAlpha(0x40);
 
canvas.drawText("Hello", 0, 0, paint); 


此处要注意


paint.setColor(Color.BLUE); 
paint.setAlpha(0x40);
 

的顺序。

参考:http://hi.baidu.com/fgfd0/blog/item/27b33dadfded66184b36d63e.html

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-08-01
  • 2021-11-17
  • 2021-12-27
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-02-13
相关资源
相似解决方案