private void SetupRecyclerView() { if (_rvCryptoCurrency != null) { _rvCryptoCurrency.HasFixedSize = true; var layoutManager = new LinearLayoutManager(this); layoutManager.Orientation = LinearLayoutManager.Vertical; _rvCryptoCurrency.SetLayoutManager(layoutManager); _rvCryptoCurrency.Adapter = new CryptoCurrencyAdapter((IMvxAndroidBindingContext)BindingContext, ViewModel, this); var mDividerItemDecoration = new DividerItemDecoration(_rvCryptoCurrency.Context, layoutManager.Orientation); _rvCryptoCurrency.AddItemDecoration(mDividerItemDecoration); _rvCryptoCurrency.SetItemAnimator(new DefaultItemAnimator()); } if (_rvMyCryptoCurrency != null) { _rvMyCryptoCurrency.HasFixedSize = true; var layoutManager = new LinearLayoutManager(this); layoutManager.Orientation = LinearLayoutManager.Vertical; _rvMyCryptoCurrency.SetLayoutManager(layoutManager); _rvMyCryptoCurrency.Adapter = new CryptoReminderAdapter((IMvxAndroidBindingContext)BindingContext, ViewModel, this); var mDividerItemDecoration = new DividerItemDecoration(_rvMyCryptoCurrency.Context, layoutManager.Orientation); _rvMyCryptoCurrency.AddItemDecoration(mDividerItemDecoration); _rvMyCryptoCurrency.SetItemAnimator(new DefaultItemAnimator()); } }