private void InitComponent() { try { TxtNameIcon = FindViewById <TextView>(Resource.Id.name_icon); TxtFullname = FindViewById <TextView>(Resource.Id.Txt_fullname); TxtUserName = FindViewById <TextView>(Resource.Id.username); TxtFollowers = FindViewById <TextView>(Resource.Id.Txt_flowersView); TxtFollowersCount = FindViewById <TextView>(Resource.Id.Txt_flowers_count); TxtFollowing = FindViewById <TextView>(Resource.Id.flowinglabelView); TxtFollowingCount = FindViewById <TextView>(Resource.Id.Txt_flowing_countView); TxtFirstName = FindViewById <EditText>(Resource.Id.FirstName_text); TxtLastName = FindViewById <EditText>(Resource.Id.LastName_text); UserProfileImage = FindViewById <ImageView>(Resource.Id.profile_image); CoverImage = FindViewById <ImageView>(Resource.Id.coverImageView); TxtGenderIcon = FindViewById <TextView>(Resource.Id.gender_icon); TxtGenderText = FindViewById <EditText>(Resource.Id.gender_text); TxtLocationIcon = FindViewById <TextView>(Resource.Id.location_icon); TxtLocationText = FindViewById <EditText>(Resource.Id.location_text); TxtMobileIcon = FindViewById <TextView>(Resource.Id.mobile_icon); TxtMobileText = FindViewById <EditText>(Resource.Id.mobile_text); TxtWebsiteIcon = FindViewById <TextView>(Resource.Id.website_icon); TxtWebsiteText = FindViewById <EditText>(Resource.Id.website_text); TxtWorkIcon = FindViewById <TextView>(Resource.Id.work_icon); TxtWorkText = FindViewById <EditText>(Resource.Id.work_text); TxtFacebookIcon = FindViewById <TextView>(Resource.Id.facebook_icon); TxtFacebookText = FindViewById <EditText>(Resource.Id.facebook_text); TxtGoogleIcon = FindViewById <TextView>(Resource.Id.Google_icon); TxtGoogleText = FindViewById <EditText>(Resource.Id.Google_text); TxtTwitterIcon = FindViewById <TextView>(Resource.Id.Twitter_icon); TxtTwitterText = FindViewById <EditText>(Resource.Id.Twitter_text); TxtVkIcon = FindViewById <TextView>(Resource.Id.VK_icon); TxtVkText = FindViewById <EditText>(Resource.Id.VK_text); TxtInstagramIcon = FindViewById <TextView>(Resource.Id.Instagram_icon); TxtInstagramText = FindViewById <EditText>(Resource.Id.Instagram_text); TxtYoutubeIcon = FindViewById <TextView>(Resource.Id.Youtube_icon); TxtYoutubeText = FindViewById <EditText>(Resource.Id.Youtube_text); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtGenderIcon, IonIconsFonts.Male); TxtGenderIcon.SetTextColor(Color.ParseColor("#4693d8")); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtLocationIcon, IonIconsFonts.Location); TxtLocationIcon.SetTextColor(Color.ParseColor(AppSettings.MainColor)); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtMobileIcon, IonIconsFonts.AndroidCall); TxtMobileIcon.SetTextColor(Color.ParseColor("#fa6670")); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtWebsiteIcon, IonIconsFonts.AndroidGlobe); TxtWebsiteIcon.SetTextColor(Color.ParseColor("#6b38d1")); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtWorkIcon, IonIconsFonts.Briefcase); TxtWorkIcon.SetTextColor(Color.ParseColor("#eca72c")); EditProfileButton = FindViewById <CircleButton>(Resource.Id.Edit_button); //EditProfile_button.Click += EditProfileButtonOnClick; EditProfileButton.Visibility = ViewStates.Invisible; EditProfileButton.SetColor(Color.ParseColor("#282828")); if (AppSettings.SetTabDarkTheme) { TxtFirstName.SetTextColor(Color.White); TxtFirstName.SetHintTextColor(Color.White); TxtLastName.SetTextColor(Color.White); TxtLastName.SetHintTextColor(Color.White); TxtGenderText.SetTextColor(Color.White); TxtGenderText.SetHintTextColor(Color.White); TxtLocationText.SetTextColor(Color.White); TxtLocationText.SetHintTextColor(Color.White); TxtMobileText.SetTextColor(Color.White); TxtMobileText.SetHintTextColor(Color.White); TxtWebsiteText.SetTextColor(Color.White); TxtWebsiteText.SetHintTextColor(Color.White); TxtWorkText.SetTextColor(Color.White); TxtWorkText.SetHintTextColor(Color.White); TxtFacebookText.SetTextColor(Color.White); TxtFacebookText.SetHintTextColor(Color.White); TxtGoogleText.SetTextColor(Color.White); TxtGoogleText.SetHintTextColor(Color.White); TxtTwitterText.SetTextColor(Color.White); TxtTwitterText.SetHintTextColor(Color.White); TxtVkText.SetTextColor(Color.White); TxtVkText.SetHintTextColor(Color.White); TxtInstagramText.SetTextColor(Color.White); TxtInstagramText.SetHintTextColor(Color.White); TxtYoutubeText.SetTextColor(Color.White); TxtYoutubeText.SetHintTextColor(Color.White); } else { TxtFirstName.SetTextColor(Color.Black); TxtFirstName.SetHintTextColor(Color.Black); TxtLastName.SetTextColor(Color.Black); TxtLastName.SetHintTextColor(Color.Black); TxtGenderText.SetTextColor(Color.Black); TxtGenderText.SetHintTextColor(Color.Black); TxtLocationText.SetTextColor(Color.Black); TxtLocationText.SetHintTextColor(Color.Black); TxtMobileText.SetTextColor(Color.Black); TxtMobileText.SetHintTextColor(Color.Black); TxtWebsiteText.SetTextColor(Color.Black); TxtWebsiteText.SetHintTextColor(Color.Black); TxtWorkText.SetTextColor(Color.Black); TxtWorkText.SetHintTextColor(Color.Black); TxtFacebookText.SetTextColor(Color.Black); TxtFacebookText.SetHintTextColor(Color.Black); TxtGoogleText.SetTextColor(Color.Black); TxtGoogleText.SetHintTextColor(Color.Black); TxtTwitterText.SetTextColor(Color.Black); TxtTwitterText.SetHintTextColor(Color.Black); TxtVkText.SetTextColor(Color.Black); TxtVkText.SetHintTextColor(Color.Black); TxtInstagramText.SetTextColor(Color.Black); TxtInstagramText.SetHintTextColor(Color.Black); TxtYoutubeText.SetTextColor(Color.Black); TxtYoutubeText.SetHintTextColor(Color.Black); } FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtNameIcon, IonIconsFonts.Person); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtFacebookIcon, IonIconsFonts.SocialFacebook); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtGoogleIcon, IonIconsFonts.SocialGoogle); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtTwitterIcon, IonIconsFonts.SocialTwitter); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeBrands, TxtVkIcon, FontAwesomeIcon.Vk); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtInstagramIcon, IonIconsFonts.SocialInstagram); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtYoutubeIcon, IonIconsFonts.SocialYoutube); TxtGenderText.SetFocusable(ViewFocusability.NotFocusable); } catch (Exception e) { Console.WriteLine(e); } }