android给view的overlay添加bitmap
1、首先将xml布局(layout)转化为bitmapfun getViewBitmap(layoutId: Int): Bitmap? { val view = layoutInflater.inflate(layoutId, null) val me = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED) view.measure(me, me) view.layout(0,