Hope this help,
SearchView sv = FindViewById(Resource.Id.svSearchHadith);
sv.QueryTextChange += Sv_QueryTextChange;
lstHadiths = FindViewById<Android.Widget.ListView>(Resource.Id.lstHadiths);
itemsHadiths = dbContext.GetAllHadiths(); // get the data in this formats List
lstHadiths.Adapter = new ListViewHadiths(this, itemsHadiths); // adding Adapter to listview
// how model looks like
public class ModelHadiths
{
public int Id { get; set; }
public string Description { get; set; }
public string Narrator { get; set; }
public string Muhadith { get; set; }
public string Source { get; set; }
public string Topic { get; set; }
public string HadithType { get; set; }
public int CommentID { get; set; }
}
Posts
Hope this help,
SearchView sv = FindViewById(Resource.Id.svSearchHadith);
sv.QueryTextChange += Sv_QueryTextChange;
lstHadiths = FindViewById<Android.Widget.ListView>(Resource.Id.lstHadiths);
itemsHadiths = dbContext.GetAllHadiths(); // get the data in this formats List
lstHadiths.Adapter = new ListViewHadiths(this, itemsHadiths); // adding Adapter to listview
private void Sv_QueryTextChange(object sender, SearchView.QueryTextChangeEventArgs e)
{
lstHadiths.Adapter = new ListViewHadiths(this, FindInsideHadithsList(e.NewText));
}
// how model looks like
public class ModelHadiths
{
public int Id { get; set; }
public string Description { get; set; }
public string Narrator { get; set; }
public string Muhadith { get; set; }
public string Source { get; set; }
public string Topic { get; set; }
public string HadithType { get; set; }
public int CommentID { get; set; }
}
fore more write me in email