Android View双缓冲绘制下不符合逻辑的刷新机制,相关资料参考
自定义View使用双缓冲刷新
*/
class MyViewUseBitmap : View {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
)
private var mCanvas: Canvas? = null
private var mBitmap: Bitmap? = null
private var mColor: Int = Color.BLUE
priv
共有 0 条评论