Ive been developing a xamarin for a couple weeks now and i started using syncfusion last week. I have tried to extend SfAutoComplete to add my own behaviours but when i run the app on my android phone i get this error: E/ArrayAdapter(31373): You must supply a resource ID for a TextView. The custom control works flawlessly on uwp but it crashes on android. What am i doing wrong?
Here my CustomSfAutoComplete Code:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace BenderResearchXamarin.Controls
{
class CustomDataGrid : Grid
{
public ObservableCollection<View> DataSource
{
get;
set;
}
public CustomDataGrid() : base()
{
DataSource = new ObservableCollection<View>();
DataSource.CollectionChanged += DataSource_CollectionChanged;
}
private void DataSource_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
Repopulate();
}
public void Repopulate()
{
int x = 0;
int y = 0;
foreach(View view in DataSource)
{
if(x <= this.RowDefinitions.Count)
{
this.Children.Add(view, x, y);
x++;
}
else
{
y++;
x = 0;
this.Children.Add(view, x, y);
}
}
}
}
}
And i add it to my axml like this:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:custom="clr-namespace:BenderResearchXamarin.Controls" //my control namespace
x:Class="BenderResearchXamarin.Pages.DataInput">
....
<custom:CustomSfAutoComplete Grid.Row="0" Grid.Column="1" x:Name="acEntity"/>
....
</ContentPage>