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); } }
private void InitComponent() { try { MediaLiner = (LinearLayout)FindViewById(Resource.Id.mediaLiner); MediaLiner.Visibility = ViewStates.Gone; MainLinear = (LinearLayout)FindViewById(Resource.Id.mainLinear); IconTitle = (TextView)FindViewById(Resource.Id.iconTitle); MRecycler = (RecyclerView)FindViewById(Resource.Id.recyler); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconTitle, IonIconsFonts.Document); 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); TxtAbout = FindViewById <AutoLinkTextView>(Resource.Id.Txt_AboutUser); ImageUserProfile = FindViewById <ImageView>(Resource.Id.profile_image); ImageUserCover = FindViewById <ImageView>(Resource.Id.coverImageView); GenderLiner = FindViewById <LinearLayout>(Resource.Id.genderLiner); TxtGenderIcon = FindViewById <TextView>(Resource.Id.gender_icon); TxtGenderText = FindViewById <TextView>(Resource.Id.gender_text); LocationLiner = FindViewById <LinearLayout>(Resource.Id.locationLiner); TxtLocationIcon = FindViewById <TextView>(Resource.Id.location_icon); TxtLocationText = FindViewById <TextView>(Resource.Id.location_text); MobileLiner = FindViewById <LinearLayout>(Resource.Id.mobileLiner); TxtMobileIcon = FindViewById <TextView>(Resource.Id.mobile_icon); TxtMobileText = FindViewById <TextView>(Resource.Id.mobile_text); WebsiteLiner = FindViewById <LinearLayout>(Resource.Id.websiteLiner); TxtWebsiteIcon = FindViewById <TextView>(Resource.Id.website_icon); TxtWebsiteText = FindViewById <TextView>(Resource.Id.website_text); WorkLiner = FindViewById <LinearLayout>(Resource.Id.workLiner); TxtWorkIcon = FindViewById <TextView>(Resource.Id.work_icon); TxtWorkText = FindViewById <TextView>(Resource.Id.work_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")); AddFriendOrFollowButton = FindViewById <CircleButton>(Resource.Id.follow_button); AddFriendOrFollowButton.Tag = "Add"; AddFriendOrFollowButton.SetColor(Color.ParseColor("#8c8a8a")); BtnFacebook = FindViewById <CircleButton>(Resource.Id.facebook_button); BtnInstegram = FindViewById <CircleButton>(Resource.Id.instegram_button); BtnTwitter = FindViewById <CircleButton>(Resource.Id.twitter_button); BtnGoogle = FindViewById <CircleButton>(Resource.Id.google_button); BtnVk = FindViewById <CircleButton>(Resource.Id.vk_button); BtnYoutube = FindViewById <CircleButton>(Resource.Id.youtube_button); GenderLiner.Visibility = ViewStates.Gone; LocationLiner.Visibility = ViewStates.Gone; MobileLiner.Visibility = ViewStates.Gone; WebsiteLiner.Visibility = ViewStates.Gone; WorkLiner.Visibility = ViewStates.Gone; } catch (Exception e) { Console.WriteLine(e); } }