Activity中加入以下代码(kotlin)

val paint = Paint()
val colorMatrix = ColorMatrix()
colorMatrix.setSaturation(0f)
paint.colorFilter = ColorMatrixColorFilter(colorMatrix)
window.decorView.setLayerType(View.LAYER_TYPE_HARDWARE, paint)

  

相关文章:

  • 2022-01-07
  • 2021-06-07
  • 2022-12-23
  • 2022-01-02
  • 2021-12-17
  • 2022-01-28
  • 2022-02-26
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2021-11-28
  • 2021-07-28
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
相关资源
相似解决方案