https://www.jianshu.com/p/ccfd58a0f3ac文档有解释
"Recycle": Missing recycle() calls
实际代码中,
val typedArray =context.obtainStyledAttributes(attrs, R.styleable.searchview)
TypedArray对象typedArray是需要回收执行recycle的,
所以在typedArray使用完成后执行typedArray.recycle();即可
https://www.jianshu.com/p/ccfd58a0f3ac文档有解释
"Recycle": Missing recycle() calls
实际代码中,
val typedArray =context.obtainStyledAttributes(attrs, R.styleable.searchview)
TypedArray对象typedArray是需要回收执行recycle的,
所以在typedArray使用完成后执行typedArray.recycle();即可