There is the next task. There is an area on the screen where ImageView can be placed. You can post them endlessly and they are all placed in one layout ( RelativeLayout ). Next, you need to convert all ImageView from the screen into one Bitmap given size (The size may be larger than the screen size). Actually, how to implement it?

Here it is also important to take into account that all ImageView can be rotated differently.

Only one unfinished idea comes to mind so far: Convert the background parent layout to a Bitmap , then, tracking the positions of other children relative to the parent, convert the child ImageView into a Bitmap and place this Bitmap on top of the parent Bitmap (Which is made from background )

By the way, another question. If ImageView has only a background , is it possible to get a Bitmap from this ImageView ?

    1 answer 1

    this way you can get the bitmap of any layout (the children will also be displayed). If bitmap should be larger than the screen, then you will most likely have to do what you describe.

     RelativeLayout view = (RelativeLayout)findViewById(R.id.relativelayout); view.setDrawingCacheEnabled(true); view.buildDrawingCache(); Bitmap bm = view.getDrawingCache();