I want to implement a custom entry in xamarin, followed some youtube tutorials step by step and it works on them but mine crashes when launching it via a live player.
Here is the code in the shared project
using Xamarin.Forms;
namespace QuickTest.CustomControls
{
public class PlainEntry : Entry
{
}
}
And here is the android specific version
using Android.Content;
using QuickTest.CustomControls;
using QuickTest.Droid.CustomAndroidControls;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(PlainEntry), typeof(PlainEntryAndroid))]
namespace QuickTest.Droid.CustomAndroidControls
{
public class PlainEntryAndroid : EntryRenderer
{
public PlainEntryAndroid() : base(null) { }
public PlainEntryAndroid(Context context) : base(context) { }
}
}
Its a basic implementation i commented out the OnElementChanged function just so i could get it to run first, is there something am doing wrong, any help would be highly appreciated because i have already wasted enough time on this, thanks.
Btw I have also tried it without either of the constructors and it failed.