protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); items = new Items(); itemsAdapter = new ItemsAdapter(items); SetContentView(Resource.Layout.recycle_gl); itemsAdapter.ItemClick += OnItemClick; searchView = FindViewById <Android.Support.V7.Widget.SearchView>(Resource.Id.searchView); mRecyclerView = FindViewById <RecyclerView>(Resource.Id.recycleV); mRecyclerView.SetAdapter(itemsAdapter); mLayoutManager = new LinearLayoutManager(this); mRecyclerView.SetLayoutManager(mLayoutManager); searchView.QueryTextChange += SearchView_QueryTextChange; }
internal static Filter newInstace(Items currentItems, ItemsAdapter itemsAdapter) { adapter = itemsAdapter; FilterHelper.currentItems = currentItems; return(new FilterHelper()); }