private void SetUpRecyclerView(RecyclerView view)
        {
            view.SetLayoutManager(new LinearLayoutManager(view.Context));
            var adapter = new RulesSearchRecyclerViewAdapter(Rules.RulesNamesCompleteSet(), this);

            if (Activity is MainActivity activity)
            {
                activity.SearchAdapter = adapter;
            }
            view.SetAdapter(adapter);
        }
示例#2
0
 public RulesFilter(RulesSearchRecyclerViewAdapter adapter)
 {
     _adapter = adapter;
 }