private void InitComponent() { try { MainView = FindViewById <CoordinatorLayout>(Resource.Id.main_content); SecondReactionButton = FindViewById <TextView>(Resource.Id.SecondReactionText); MainSectionButton = FindViewById <LinearLayout>(Resource.Id.linerSecondReaction); LikeButton = FindViewById <ReactButton>(Resource.Id.ReactButton); CommentCount = FindViewById <TextView>(Resource.Id.Commentcount); LikeCount = FindViewById <TextView>(Resource.Id.Likecount); TimeText = FindViewById <AppCompatTextView>(Resource.Id.time_text); PrivacyPostIcon = FindViewById <AppCompatTextView>(Resource.Id.privacyPost); MoreIcon = FindViewById <ImageView>(Resource.Id.moreicon); Username = FindViewById <TextViewWithImages>(Resource.Id.username); UserAvatar = FindViewById <CircleImageView>(Resource.Id.userAvatar); Description = FindViewById <SuperTextView>(Resource.Id.description); PostExtrasLayout = FindViewById <RelativeLayout>(Resource.Id.postExtras); ShareLinearLayout = FindViewById <LinearLayout>(Resource.Id.ShareLinearLayout); CommentLinearLayout = FindViewById <LinearLayout>(Resource.Id.CommentLinearLayout); SecondReactionLinearLayout = FindViewById <LinearLayout>(Resource.Id.SecondReactionLinearLayout); if (SecondReactionButton != null) { switch (AppSettings.PostButton) { case PostButtonSystem.ReactionDefault: case PostButtonSystem.ReactionSubShine: case PostButtonSystem.Like: MainSectionButton.WeightSum = 3; SecondReactionLinearLayout.Visibility = ViewStates.Gone; break; case PostButtonSystem.Wonder: MainSectionButton.WeightSum = 4; SecondReactionLinearLayout.Visibility = ViewStates.Visible; SecondReactionButton.SetCompoundDrawablesWithIntrinsicBounds(Resource.Drawable.icon_post_wonder_vector, 0, 0, 0); SecondReactionButton.Text = Application.Context.GetText(Resource.String.Btn_Wonder); break; case PostButtonSystem.DisLike: MainSectionButton.WeightSum = 4; SecondReactionLinearLayout.Visibility = ViewStates.Visible; SecondReactionButton.SetCompoundDrawablesWithIntrinsicBounds(Resource.Drawable.ic_action_dislike, 0, 0, 0); SecondReactionButton.Text = Application.Context.GetText(Resource.String.Btn_Dislike); break; } } LikeButton.SetTextColor(Color.White); //if (LikeButton?.GetCurrentReaction()?.GetReactType() == ReactConstants.Default) //{ // LikeButton.CompoundDrawableTintList = ColorStateList.ValueOf(Color.White); //} YouTubePlayerView youTubeView = new YouTubePlayerView(this); var youtubeView = FindViewById <FrameLayout>(Resource.Id.root); youtubeView.RemoveAllViews(); youtubeView.AddView(youTubeView); youTubeView.Initialize(GetText(Resource.String.google_key), this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }