private void DestroyBasic() { try { MAdView?.Destroy(); MAdapter = null !; SwipeRefreshLayout = null !; MRecycler = null !; EmptyStateLayout = null !; Inflated = null !; MAdView = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { MAdView?.Destroy(); MAdapter = null; SwipeRefreshLayout = null; MRecycler = null; EmptyStateLayout = null; Inflated = null; MAdView = null; } catch (Exception e) { Console.WriteLine(e); } }
private void SetRecyclerViewAdapters() { try { MAdapter = new ManageSessionsAdapter(this) { SessionsList = new ObservableCollection <FetchSessionsObject.SessionsDataObject>() }; LayoutManager = new LinearLayoutManager(this); MRecycler.SetLayoutManager(LayoutManager); //MRecycler.HasFixedSize = true; //MRecycler.SetItemViewCacheSize(10); //MRecycler.GetLayoutManager().ItemPrefetchEnabled = true; MRecycler.SetAdapter(MAdapter); } catch (Exception e) { Console.WriteLine(e); } }