Draw a bloated xml layout on a bitmap

I created an XML layout file containing an extended text view. I want to draw text in a bitmap. What do I need to do after inflating the view so that I can use the draw method on my canvas?

thanks

+4
source share
1 answer

The following are the steps that must be completed:

  • You need to create a modified bitmap (with screen size).
  • Create a canvas from this bitmap.
  • inflate your performance, get a link to it.
  • Call your_view.draw (your_canvas).

That is all, in your bitmap, you will have your own idea, and all its drawings are drawn.

+4
source

All Articles