Welcome to the Xamarin.Android feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Android, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hello, I'm developing an Android app using Syncfusion.SfPdfViewer.Android.
I found that adding FreeTextAnnotation makes null reference exception.
It worked well before, but not now.
Below is my code that makes null reference exception and I attached sample project.
private void BtnTextAnnot_Click(object sender, EventArgs e)
{
FreeTextAnnotationSettings TextSetting = new FreeTextAnnotationSettings();
TextSetting.IsFreeTextDialogEnabled = true;
TextSetting.TextColor = Android.Graphics.Color.Black;
TextSetting.TextSize = 20;
Viewer.AnnotationSettings.FreeText = TextSetting;
Viewer.AnnotationMode = AnnotationMode.FreeText;
// text frament is shown well, but pressing "OK" make exception
// ...
}
Please review and update.
Thank you.