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 SetRecyclerViewAdapters() { try { MAdapter = new PokesAdapter(this, this) { PokeList = new ObservableCollection <PokeObject.Datum>() }; LayoutManager = new LinearLayoutManager(this); MRecycler.SetLayoutManager(LayoutManager); MRecycler.SetAdapter(MAdapter); // MRecycler.HasFixedSize = true; // MRecycler.SetItemViewCacheSize(10); // MRecycler.GetLayoutManager().ItemPrefetchEnabled = true; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { MAdView?.Destroy(); RewardedVideoAd?.OnDestroy(this); MAdapter = null; SwipeRefreshLayout = null; MRecycler = null; EmptyStateLayout = null; Inflated = null; MAdView = null; RewardedVideoAd = null; } catch (Exception e) { Console.WriteLine(e); } }