Converting a view to Bitmap without displaying it in Android?

前端 未结 9 1748
渐次进展
渐次进展 2020-11-22 07:36

I will try to explain what exactly I need to do.

I have 3 separate screens say A,B,C. There is another screen called say HomeScreen where all the 3 screens bitmap sh

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 08:14

    There is a great Kotlin extension function in Android KTX: View.drawToBitmap(Bitmap.Config)

提交回复
热议问题