Enjoy this library https://github.com/vipulasri/Layout-to-Image from B4A
Android Layout (Relative Layout, Linear Layout etc) to Image
LayoutToImage
Author: SMM
Version: 0.01
Sample
I tested it on Activity and it worked .
On a wrapped view the application crashed
Version 2 : Removed @ActivityObject annotation : Thanks @DonManfred
Android Layout (Relative Layout, Linear Layout etc) to Image
LayoutToImage
Author: SMM
Version: 0.01
- LayoutToImage
Methods:- Initialize
- LayoutToImage (view As View) As Bitmap
Sample
B4X:
Dim lti As LayoutToImage
lti.Initialize
myimageview.SetBackgroundImage(lti.LayoutToImage( Activity))
I tested it on Activity and it worked .
On a wrapped view the application crashed
Version 2 : Removed @ActivityObject annotation : Thanks @DonManfred
Attachments
Last edited: