Example #1
0
        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;
        }
Example #2
0
 internal static Filter newInstace(Items currentItems, ItemsAdapter itemsAdapter)
 {
     adapter = itemsAdapter;
     FilterHelper.currentItems = currentItems;
     return(new FilterHelper());
 }