private void SetupRecyClerView() { myRecyclerView.SetLayoutManager(new Android.Support.V7.Widget.LinearLayoutManager(myRecyclerView.Context)); adapter = new AluminiAdapter(AluminiList); adapter.DeleteItemClick += Adapter_DeleteItemClick; adapter.ItemLongClick += Adapter_ItemLongClick; myRecyclerView.SetAdapter(adapter); }
private void SearchText_TextChanged(object sender, Android.Text.TextChangedEventArgs e) { List <Alumini> SearchResult = (from alumini in AluminiList where alumini.FullName.ToLower().Contains(searchText.Text.ToLower()) || alumini.Set.ToLower().Contains(searchText.Text.ToLower()) || alumini.Department.ToLower().Contains(searchText.Text.ToLower()) || alumini.Status.ToLower().Contains(searchText.Text.ToLower()) select alumini).ToList(); adapter = new AluminiAdapter(SearchResult); myRecyclerView.SetAdapter(adapter); }