Image is not showing from resource in Android

Hello,
I am using syncfusion SfimageEditor in xamarin form. Here is my code in c#.

SfImageEditor sfImage = new SfImageEditor();
sfImage.Source = ImageSource.FromStream(() => new MemoryStream(imageDataarray));
StackLayoutMap.Children.Add(sfImage);


This is working 100% fine in UWP but in android image is not showing in SfimageEditor object.


Note: i have implemented all permissions and image is loading perfectly on (Image images = new Image();) image object. i have applied all permissions .let me know if i miss something for android

1 Reply

MP Michael Prabhu M Syncfusion Team October 24, 2018 11:02 AM UTC

Hi Umair, 
 
Greetings from Syncfusion. 
 
Query:  In android image is not showing in SfimageEditor  
 
We have validated your code snippet and we found that VerticalOptions are missing in your code snippet. As per the behavior of the StackLayout, it will have infinite height, so we have to give vertical option for view.  We have modified your code snippet as like below. 
 
Grid grid = new Grid() { VerticalOptions = LayoutOptions.FillAndExpand };
SfImageEditor editor = new SfImageEditor()
{
   Source = ImageSource.FromResource("IESample.image.jpeg")
};
grid.Children.Add(editor);
StackLayoutMap.Children.Add(grid); 
 
Also, we have created sample for this and find the sample from below location. 
  
 
Please let us know if you need any further assistance on this. 
 
Thanks, 
Michael 



Loader.
Up arrow icon