private void DestroyBasic() { try { MAdView?.Destroy(); RewardedVideo?.Destroy(); MAdapter = null !; SwipeRefreshLayout = null !; MRecycler = null !; EmptyStateLayout = null !; Inflated = null !; MAdView = null !; RewardedVideo = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { MAdView?.Destroy(); RewardedVideo?.Destroy(); MAdapter = null; SwipeRefreshLayout = null; MRecycler = null; EmptyStateLayout = null; Inflated = null; MAdView = null; RewardedVideo = null; } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { MRecycler = (RecyclerView)FindViewById(Resource.Id.recyler); EmptyStateLayout = FindViewById <ViewStub>(Resource.Id.viewStub); SwipeRefreshLayout = (SwipeRefreshLayout)FindViewById(Resource.Id.swipeRefreshLayout); SwipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); SwipeRefreshLayout.Refreshing = true; SwipeRefreshLayout.Enabled = true; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); MAdView = FindViewById <AdView>(Resource.Id.adView); AdsGoogle.InitAdView(MAdView, MRecycler); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { MRecycler = (RecyclerView)FindViewById(Resource.Id.recyler); EmptyStateLayout = FindViewById <ViewStub>(Resource.Id.viewStub); SwipeRefreshLayout = (SwipeRefreshLayout)FindViewById(Resource.Id.swipeRefreshLayout); SwipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); SwipeRefreshLayout.Refreshing = false; SwipeRefreshLayout.Enabled = true; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); BtnAction = FindViewById <TextView>(Resource.Id.toolbar_title); BtnAction.Visibility = ViewStates.Visible; MAdView = FindViewById <AdView>(Resource.Id.adView); AdsGoogle.InitAdView(MAdView, MRecycler); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { MainLayout = FindViewById <RelativeLayout>(Resource.Id.mainLayout); MainLayout.SetBackgroundResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.linear_gradient_drawable_Dark : Resource.Drawable.linear_gradient_drawable); BackIcon = FindViewById <TextView>(Resource.Id.IconBack); NameIcon = FindViewById <TextView>(Resource.Id.IconName); EdtFirstName = FindViewById <EditText>(Resource.Id.FirstNameEditText); EdtLastName = FindViewById <EditText>(Resource.Id.LastNameEditText); GenderIcon = FindViewById <TextView>(Resource.Id.IconGender); EdtGender = FindViewById <EditText>(Resource.Id.GenderEditText); BirthdayIcon = FindViewById <TextView>(Resource.Id.IconBirthday); EdtBirthday = FindViewById <EditText>(Resource.Id.BirthdayEditText); LocationIcon = FindViewById <TextView>(Resource.Id.IconLocation); EdtLocation = FindViewById <EditText>(Resource.Id.LocationEditText); LanguageIcon = FindViewById <TextView>(Resource.Id.IconLanguage); EdtLanguage = FindViewById <EditText>(Resource.Id.LanguageEditText); RelationshipIcon = FindViewById <TextView>(Resource.Id.IconRelationship); EdtRelationship = FindViewById <EditText>(Resource.Id.RelationshipEditText); WorkStatusIcon = FindViewById <TextView>(Resource.Id.IconWorkStatus); EdtWorkStatus = FindViewById <EditText>(Resource.Id.WorkStatusEditText); EducationIcon = FindViewById <TextView>(Resource.Id.IconEducation); EdtEducation = FindViewById <EditText>(Resource.Id.EducationEditText); BtnSave = FindViewById <Button>(Resource.Id.ApplyButton); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, NameIcon, FontAwesomeIcon.User); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, GenderIcon, FontAwesomeIcon.Transgender); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, BirthdayIcon, FontAwesomeIcon.BirthdayCake); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, LocationIcon, FontAwesomeIcon.MapMarkerAlt); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, LanguageIcon, FontAwesomeIcon.Language); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, RelationshipIcon, FontAwesomeIcon.Heart); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, WorkStatusIcon, FontAwesomeIcon.Briefcase); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, EducationIcon, FontAwesomeIcon.GraduationCap); Methods.SetColorEditText(EdtFirstName, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtLastName, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtGender, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtBirthday, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtLocation, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtLanguage, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtRelationship, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtWorkStatus, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtEducation, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetFocusable(EdtGender); Methods.SetFocusable(EdtBirthday); Methods.SetFocusable(EdtLanguage); Methods.SetFocusable(EdtRelationship); Methods.SetFocusable(EdtWorkStatus); Methods.SetFocusable(EdtEducation); MAdView = FindViewById <AdView>(Resource.Id.adView); AdsGoogle.InitAdView(MAdView, null); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { MainLayout = FindViewById <RelativeLayout>(Resource.Id.mainLayout); MainLayout.SetBackgroundResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.linear_gradient_drawable_Dark : Resource.Drawable.linear_gradient_drawable); BackIcon = FindViewById <TextView>(Resource.Id.IconBack); MusicIcon = FindViewById <TextView>(Resource.Id.IconMusic); EdtMusic = FindViewById <EditText>(Resource.Id.MusicEditText); DishIcon = FindViewById <TextView>(Resource.Id.IconDish); EdtDish = FindViewById <EditText>(Resource.Id.DishEditText); SongIcon = FindViewById <TextView>(Resource.Id.IconSong); EdtSong = FindViewById <EditText>(Resource.Id.SongEditText); HobbyIcon = FindViewById <TextView>(Resource.Id.IconHobby); EdtHobby = FindViewById <EditText>(Resource.Id.HobbyEditText); CityIcon = FindViewById <TextView>(Resource.Id.IconCity); EdtCity = FindViewById <EditText>(Resource.Id.CityEditText); SportIcon = FindViewById <TextView>(Resource.Id.IconSport); EdtSport = FindViewById <EditText>(Resource.Id.SportEditText); BookIcon = FindViewById <TextView>(Resource.Id.IconBook); EdtBook = FindViewById <EditText>(Resource.Id.BookEditText); MovieIcon = FindViewById <TextView>(Resource.Id.IconMovie); EdtMovie = FindViewById <EditText>(Resource.Id.MovieEditText); ColorIcon = FindViewById <TextView>(Resource.Id.IconColor); EdtColor = FindViewById <EditText>(Resource.Id.ColorEditText); TvShowIcon = FindViewById <TextView>(Resource.Id.IconTvShow); EdtTvShow = FindViewById <EditText>(Resource.Id.TvShowEditText); BtnSave = FindViewById <Button>(Resource.Id.ApplyButton); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, MusicIcon, FontAwesomeIcon.Music); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, DishIcon, FontAwesomeIcon.Fish); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeBrands, SongIcon, FontAwesomeIcon.Mandalorian); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, HobbyIcon, FontAwesomeIcon.Smile); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, CityIcon, FontAwesomeIcon.City); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, SportIcon, FontAwesomeIcon.FootballBall); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, BookIcon, FontAwesomeIcon.Book); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, MovieIcon, FontAwesomeIcon.Film); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, ColorIcon, FontAwesomeIcon.Palette); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, TvShowIcon, FontAwesomeIcon.Tv); Methods.SetColorEditText(EdtMusic, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtDish, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtSong, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtHobby, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtCity, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtSport, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtBook, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtMovie, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtColor, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtTvShow, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); MAdView = FindViewById <AdView>(Resource.Id.adView); AdsGoogle.InitAdView(MAdView, null); } catch (Exception e) { Console.WriteLine(e); } }