I have my custom renderer working well for iOS but can't seem to figure out how these items translate to Android:
Here is iOS:
protected override void OnElementChanged(VisualElementChangedEventArgs e)
{
base.OnElementChanged (e);
if (e.OldElement == null)
{
var webView = this;
Frame = new System.Drawing.RectangleF(0, 0, UIScreen.MainScreen.Bounds.Width-10, 1);
webView.ScrollView.ScrollEnabled = false;
webView.LoadFinished += (sender, f) =>
{
webView.SizeToFit();
float height = webView.ScrollView.ContentSize.Height;
Frame = new System.Drawing.RectangleF(0, 0, UIScreen.MainScreen.Bounds.Width-10, height);
};
}
}
What Im unsure of is, in Android, how do I access the LoadFinished event? And How do I set the frame?
Thanks!