private void DestroyBasic() { try { ViewPagerView = null !; CircleIndicatorView = null !; TxtProductPrice = null !; TxtProductNew = null !; TxtProductInStock = null !; TxtProductDescription = null !; TxtProductLocation = null !; TxtProductCardName = null !; TxtProductTime = null !; BtnContact = null !; UserImageAvatar = null !; ImageMore = null !; IconBack = null !; BtnLike = null !; BtnComment = null !; MainSectionButton = null !; BtnWonder = null !; ImgWonder = null !; TxtWonder = null !; LikeButton = null !; ClickListener = null !; PostData = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { ToolbarLayout = null; AppBarLayout = null; TxtName = null; TxtGoing = null; TxtInterested = null; TxtStartDate = null; TxtEndDate = null; TxtLocation = null; TxtDescription = null; TxtDescriptionText = null; ImageEventCover = null; BtnGo = null; BtnInterested = null; FloatingActionButtonView = null; MainRecyclerView = null; BtnMore = null; SwipeRefreshLayout = null; } catch (Exception e) { Console.WriteLine(e); } }
private void DestroyBasic() { try { ToolbarLayout = null !; AppBarLayout = null !; TxtName = null !; TxtGoing = null !; TxtInterested = null !; TxtStartDate = null !; TxtEndDate = null !; TxtLocation = null !; TxtDescription = null !; TxtDescriptionText = null !; ImageEventCover = null !; BtnGo = null !; BtnInterested = null !; FloatingActionButtonView = null !; MainRecyclerView = null !; BtnMore = null !; SwipeRefreshLayout = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { ViewPagerView = null; CircleIndicatorView = null; TxtProductPrice = null; TxtProductNew = null; TxtProductInStock = null; TxtProductDescription = null; TxtProductLocation = null; TxtProductCardName = null; TxtProductTime = null; BtnContact = null; UserImageAvatar = null; ImageMore = null; IconBack = null; BtnLike = null; BtnComment = null; MainSectionButton = null; BtnWonder = null; ImgWonder = null; TxtWonder = null; LikeButton = null; ClickListener = null; PostData = null; } catch (Exception e) { Console.WriteLine(e); } }
private void DestroyBasic() { try { RewardedVideoAd?.OnDestroy(this); ViewPager = null !; TxtDescription = null !; ImgLike = null !; ImgWoWonder = null !; TxtCountLike = null !; TxtCountWoWonder = null !; MainLayout = null !; InfoImageLiner = null !; BtnCountLike = null !; BtnCountWoWonder = null !; BtnLike = null !; BtnComment = null !; BtnShare = null !; MainSectionButton = null !; BtnWonder = null !; ImgWonder = null !; TxtWonder = null !; LikeButton = null !; ShareText = null !; ClickListener = null !; RewardedVideoAd = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { IconBack = FindViewById <ImageView>(Resource.Id.iv_back); JobCoverImage = FindViewById <ImageView>(Resource.Id.JobCoverImage); JobAvatar = FindViewById <ImageView>(Resource.Id.JobAvatar); JobTitle = FindViewById <TextView>(Resource.Id.Jobtitle); PageName = FindViewById <TextView>(Resource.Id.pageName); JobInfo = FindViewById <AppCompatTextView>(Resource.Id.JobInfo); JobButton = FindViewById <Button>(Resource.Id.JobButton); JobButton.Tag = "Apply"; //MinimumTextView = FindViewById<TextView>(Resource.Id.minimum); //MaximumTextView = FindViewById<TextView>(Resource.Id.maximum); MaximumNumber = FindViewById <TextView>(Resource.Id.maximumNumber); MinimumNumber = FindViewById <TextView>(Resource.Id.minimumNumber); Description = FindViewById <SuperTextView>(Resource.Id.description); var font = Typeface.CreateFromAsset(Resources?.Assets, "ionicons.ttf"); JobInfo.SetTypeface(font, TypefaceStyle.Normal); TxtMore = FindViewById <TextView>(Resource.Id.toolbar_title); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtMore, IonIconsFonts.More); TxtMore.SetTextSize(ComplexUnitType.Sp, 20f); TxtMore.Visibility = ViewStates.Gone; ReadMoreOption = new StReadMoreOption.Builder() .TextLength(400, StReadMoreOption.TypeCharacter) .MoreLabel(GetText(Resource.String.Lbl_ReadMore)) .LessLabel(GetText(Resource.String.Lbl_ReadLess)) .MoreLabelColor(Color.ParseColor(AppSettings.MainColor)) .LessLabelColor(Color.ParseColor(AppSettings.MainColor)) .LabelUnderLine(true) .Build(); switch (AppSettings.FlowDirectionRightToLeft) { case true: IconBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl); break; } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { ToolbarLayout = FindViewById <CollapsingToolbarLayout>(Resource.Id.collapsingToolbar); ToolbarLayout.Title = ""; AppBarLayout = FindViewById <AppBarLayout>(Resource.Id.appbar_ptwo); TxtName = FindViewById <TextView>(Resource.Id.tvName_ptwo); TxtGoing = FindViewById <TextView>(Resource.Id.GoingTextview); TxtInterested = FindViewById <TextView>(Resource.Id.InterestedTextview); TxtStartDate = FindViewById <TextView>(Resource.Id.txtStartDate); TxtEndDate = FindViewById <TextView>(Resource.Id.txtEndDate); TxtLocation = FindViewById <TextView>(Resource.Id.LocationTextview); TxtDescription = FindViewById <TextView>(Resource.Id.tv_about); TxtDescriptionText = FindViewById <SuperTextView>(Resource.Id.tv_aboutdescUser); ImageEventCover = FindViewById <ImageView>(Resource.Id.EventCover); BtnGo = FindViewById <Button>(Resource.Id.ButtonGoing); BtnInterested = FindViewById <Button>(Resource.Id.ButtonIntersted); FloatingActionButtonView = FindViewById <FloatingActionButton>(Resource.Id.floatingActionButtonView); FloatingActionButtonView.Visibility = ViewStates.Visible; MainRecyclerView = FindViewById <WRecyclerView>(Resource.Id.newsfeedRecyler); BtnMore = (ImageButton)FindViewById(Resource.Id.morebutton); SwipeRefreshLayout = FindViewById <SwipeRefreshLayout>(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 = false; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); AppBarLayout.AddOnOffsetChangedListener(this); var mapFrag = SupportMapFragment.NewInstance(); SupportFragmentManager.BeginTransaction().Add(Resource.Id.map, mapFrag, mapFrag.Tag).Commit(); mapFrag.GetMapAsync(this); } catch (Exception e) { Console.WriteLine(e); } }
public ShowApplyJobsAdapterViewHolder(View itemView, Action <ShowApplyJobsAdapterClickEventArgs> MessageButtonClickListener, Action <ShowApplyJobsAdapterClickEventArgs> clickListener, Action <ShowApplyJobsAdapterClickEventArgs> longClickListener) : base(itemView) { try { MainView = itemView; Image = MainView.FindViewById <ImageView>(Resource.Id.image); Username = MainView.FindViewById <TextView>(Resource.Id.Username); AddressIcon = MainView.FindViewById <TextView>(Resource.Id.addressIcon); AddressText = MainView.FindViewById <TextView>(Resource.Id.addressText); TimeIcon = MainView.FindViewById <TextView>(Resource.Id.timeIcon); TimeText = MainView.FindViewById <TextView>(Resource.Id.timeText); PhoneIcon = MainView.FindViewById <TextView>(Resource.Id.phoneIcon); PhoneText = MainView.FindViewById <TextView>(Resource.Id.phoneText); EmailIcon = MainView.FindViewById <TextView>(Resource.Id.emailIcon); EmailText = MainView.FindViewById <TextView>(Resource.Id.emailText); Button = MainView.FindViewById <Button>(Resource.Id.messageButton); PositionText = MainView.FindViewById <TextView>(Resource.Id.PositionText); StartDateText = MainView.FindViewById <TextView>(Resource.Id.startDateText); EndDateText = MainView.FindViewById <TextView>(Resource.Id.endDateText); Description = MainView.FindViewById <SuperTextView>(Resource.Id.description); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, AddressIcon, IonIconsFonts.Pin); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TimeIcon, IonIconsFonts.IosTime); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, PhoneIcon, IonIconsFonts.Images); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, EmailIcon, IonIconsFonts.IosMail); //Event Button.Click += (sender, e) => MessageButtonClickListener(new ShowApplyJobsAdapterClickEventArgs { View = itemView, Position = AdapterPosition }); itemView.Click += (sender, e) => clickListener(new ShowApplyJobsAdapterClickEventArgs { View = itemView, Position = AdapterPosition }); itemView.LongClick += (sender, e) => longClickListener(new ShowApplyJobsAdapterClickEventArgs { View = itemView, Position = AdapterPosition }); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { IconBack = FindViewById <ImageView>(Resource.Id.iv_back); OfferCoverImage = FindViewById <ImageView>(Resource.Id.offerCoverImage); OfferAvatar = FindViewById <ImageView>(Resource.Id.offerAvatar); PageName = FindViewById <TextView>(Resource.Id.pageTitle); DateNumber = FindViewById <TextView>(Resource.Id.dateNumber); DiscountNumber = FindViewById <TextView>(Resource.Id.discountNumber); Description = FindViewById <SuperTextView>(Resource.Id.description); TxtMore = FindViewById <TextView>(Resource.Id.toolbar_title); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtMore, IonIconsFonts.More); TxtMore.SetTextSize(ComplexUnitType.Sp, 20f); TxtMore.Visibility = ViewStates.Gone; ReadMoreOption = new StReadMoreOption.Builder() .TextLength(400, StReadMoreOption.TypeCharacter) .MoreLabel(GetText(Resource.String.Lbl_ReadMore)) .LessLabel(GetText(Resource.String.Lbl_ReadLess)) .MoreLabelColor(Color.ParseColor(AppSettings.MainColor)) .LessLabelColor(Color.ParseColor(AppSettings.MainColor)) .LabelUnderLine(true) .Build(); switch (AppSettings.FlowDirectionRightToLeft) { case true: IconBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl); break; } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { IconBack = null; OfferCoverImage = null; OfferAvatar = null; PageName = null; DateNumber = null; DiscountNumber = null; Description = null; TxtMore = null; DataInfoObject = null; DialogType = null; ReadMoreOption = null; } catch (Exception e) { Console.WriteLine(e); } }
private void DestroyBasic() { try { IconBack = null !; OfferCoverImage = null !; OfferAvatar = null !; PageName = null !; DateNumber = null !; DiscountNumber = null !; Description = null !; TxtMore = null !; DataInfoObject = null !; DialogType = null !; ReadMoreOption = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { IconBack = null !; JobCoverImage = null !; JobAvatar = null !; JobTitle = null !; PageName = null !; JobInfo = null !; JobButton = null !; MaximumNumber = null !; MinimumNumber = null !; Description = null !; TxtMore = null !; DialogType = null !; ReadMoreOption = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void DestroyBasic() { try { IconBack = null; JobCoverImage = null; JobAvatar = null; JobTitle = null; PageName = null; JobInfo = null; JobButton = null; MaximumNumber = null; MinimumNumber = null; Description = null; TxtMore = null; DialogType = null; ReadMoreOption = null; } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { ViewPager = (ViewPager)FindViewById(Resource.Id.view_pager); TxtDescription = FindViewById <SuperTextView>(Resource.Id.tv_description); TxtDescription?.SetTextInfo(TxtDescription); ImgLike = FindViewById <ImageView>(Resource.Id.image_like1); ImgWoWonder = FindViewById <ImageView>(Resource.Id.image_wowonder); TxtCountLike = FindViewById <TextView>(Resource.Id.LikeText1); TxtCountWoWonder = FindViewById <TextView>(Resource.Id.WoWonderTextCount); MainLayout = FindViewById <RelativeLayout>(Resource.Id.main); InfoImageLiner = FindViewById <LinearLayout>(Resource.Id.infoImageLiner); InfoImageLiner.Visibility = ViewStates.Visible; BtnCountLike = FindViewById <LinearLayout>(Resource.Id.linerlikeCount); BtnCountWoWonder = FindViewById <LinearLayout>(Resource.Id.linerwowonderCount); BtnLike = FindViewById <LinearLayout>(Resource.Id.linerlike); BtnComment = FindViewById <LinearLayout>(Resource.Id.linercomment); BtnShare = FindViewById <LinearLayout>(Resource.Id.linershare); MainSectionButton = FindViewById <LinearLayout>(Resource.Id.mainsection); BtnWonder = FindViewById <LinearLayout>(Resource.Id.linerSecondReaction); ImgWonder = FindViewById <ImageView>(Resource.Id.image_SecondReaction); TxtWonder = FindViewById <TextView>(Resource.Id.SecondReactionText); LikeButton = FindViewById <ReactButton>(Resource.Id.ReactButton); ShareText = FindViewById <TextView>(Resource.Id.ShareText); if (!AppSettings.ShowTextShareButton && ShareText != null) { ShareText.Visibility = ViewStates.Gone; } if (AppSettings.PostButton == PostButtonSystem.ReactionDefault || AppSettings.PostButton == PostButtonSystem.ReactionSubShine || AppSettings.PostButton == PostButtonSystem.Like) { MainSectionButton.WeightSum = 3; BtnWonder.Visibility = ViewStates.Gone; TxtCountWoWonder.Visibility = ViewStates.Gone; BtnCountWoWonder.Visibility = ViewStates.Gone; ImgWoWonder.Visibility = ViewStates.Gone; } else if (AppSettings.PostButton == PostButtonSystem.Wonder) { MainSectionButton.WeightSum = 4; BtnWonder.Visibility = ViewStates.Visible; TxtCountWoWonder.Visibility = ViewStates.Visible; BtnCountWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.SetImageResource(Resource.Drawable.ic_action_wowonder); ImgWonder.SetImageResource(Resource.Drawable.ic_action_wowonder); TxtWonder.Text = Application.Context.GetText(Resource.String.Btn_Wonder); } else if (AppSettings.PostButton == PostButtonSystem.DisLike) { MainSectionButton.WeightSum = 4; BtnWonder.Visibility = ViewStates.Visible; TxtCountWoWonder.Visibility = ViewStates.Visible; BtnCountWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.SetImageResource(Resource.Drawable.ic_action_dislike); ImgWonder.SetImageResource(Resource.Drawable.ic_action_dislike); TxtWonder.Text = Application.Context.GetText(Resource.String.Btn_Dislike); } if (!AppSettings.ShowShareButton && BtnShare != null) { BtnShare.Visibility = ViewStates.Gone; } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
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) { if (AppSettings.PostButton == PostButtonSystem.ReactionDefault || AppSettings.PostButton == PostButtonSystem.ReactionSubShine || AppSettings.PostButton == PostButtonSystem.Like) { MainSectionButton.WeightSum = 3; SecondReactionLinearLayout.Visibility = ViewStates.Gone; } else if (AppSettings.PostButton == 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); } else if (AppSettings.PostButton == 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); } } 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(AppSettings.YoutubeKey, this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
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.beactButton); 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) { if (AppSettings.PostButton == PostButtonSystem.Reaction || AppSettings.PostButton == PostButtonSystem.Like) { MainSectionButton.WeightSum = 3; SecondReactionLinearLayout.Visibility = ViewStates.Gone; } else if (AppSettings.PostButton == 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); } else if (AppSettings.PostButton == 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); } } LikeButton.SetTextColor(Color.White); if (LikeButton?.GetCurrentReaction()?.GetReactType() == ReactConstants.Default) { LikeButton.CompoundDrawableTintList = ColorStateList.ValueOf(Color.White); } YouTubeFragment = new YouTubePlayerSupportFragment(); SupportFragmentManager.BeginTransaction().Add(Resource.Id.root, YouTubeFragment, YouTubeFragment.Id.ToString() + DateTime.Now).Commit(); YouTubeFragment.Initialize(AppSettings.YoutubeKey, this); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { PageImage = FindViewById <ImageViewTouch>(Resource.Id.imageview); TxtDescription = FindViewById <SuperTextView>(Resource.Id.tv_description); TxtDescription?.SetTextInfo(TxtDescription); ImgLike = FindViewById <ImageView>(Resource.Id.image_like1); ImgWoWonder = FindViewById <ImageView>(Resource.Id.image_wowonder); TxtCountLike = FindViewById <TextView>(Resource.Id.LikeText1); TxtCountWoWonder = FindViewById <TextView>(Resource.Id.WoWonderTextCount); ShareCount = FindViewById <TextView>(Resource.Id.Sharecount); CommentCount = FindViewById <TextView>(Resource.Id.Commentcount); MainLayout = FindViewById <RelativeLayout>(Resource.Id.main); InfoImageLiner = FindViewById <LinearLayout>(Resource.Id.infoImageLiner); InfoImageLiner.Visibility = ViewStates.Visible; BtnCountLike = FindViewById <LinearLayout>(Resource.Id.linerlikeCount); BtnCountWoWonder = FindViewById <LinearLayout>(Resource.Id.linerwowonderCount); BtnLike = FindViewById <LinearLayout>(Resource.Id.linerlike); BtnComment = FindViewById <LinearLayout>(Resource.Id.linercomment); BtnShare = FindViewById <LinearLayout>(Resource.Id.linershare); MainSectionButton = FindViewById <LinearLayout>(Resource.Id.mainsection); BtnWonder = FindViewById <LinearLayout>(Resource.Id.linerSecondReaction); ImgWonder = FindViewById <ImageView>(Resource.Id.image_SecondReaction); TxtWonder = FindViewById <TextView>(Resource.Id.SecondReactionText); // set the default image display type // PageImage.SetDisplayType(ImageViewTouchBase.DisplayType.FitIfBigger); LikeButton = FindViewById <ReactButton>(Resource.Id.ReactButton); LikeButton.SetTextColor(Color.ParseColor("#C3C7D0")); ShareText = FindViewById <TextView>(Resource.Id.ShareText); ShareText.Visibility = AppSettings.ShowTextShareButton switch { false when ShareText != null => ViewStates.Gone, _ => ShareText.Visibility }; switch (AppSettings.PostButton) { case PostButtonSystem.ReactionDefault: case PostButtonSystem.ReactionSubShine: case PostButtonSystem.Like: MainSectionButton.WeightSum = 5; BtnWonder.Visibility = ViewStates.Gone; TxtCountWoWonder.Visibility = ViewStates.Gone; BtnCountWoWonder.Visibility = ViewStates.Gone; ImgWoWonder.Visibility = ViewStates.Gone; break; case PostButtonSystem.Wonder: MainSectionButton.WeightSum = 4; BtnWonder.Visibility = ViewStates.Visible; TxtCountWoWonder.Visibility = ViewStates.Visible; BtnCountWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.SetImageResource(Resource.Drawable.ic_action_wowonder); ImgWonder.SetImageResource(Resource.Drawable.ic_action_wowonder); TxtWonder.Text = Application.Context.GetText(Resource.String.Btn_Wonder); break; case PostButtonSystem.DisLike: MainSectionButton.WeightSum = 4; BtnWonder.Visibility = ViewStates.Visible; TxtCountWoWonder.Visibility = ViewStates.Visible; BtnCountWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.Visibility = ViewStates.Visible; ImgWoWonder.SetImageResource(Resource.Drawable.ic_action_dislike); ImgWonder.SetImageResource(Resource.Drawable.ic_action_dislike); TxtWonder.Text = Application.Context.GetText(Resource.String.Btn_Dislike); break; } BtnShare.Visibility = AppSettings.ShowShareButton switch { false when BtnShare != null => ViewStates.Gone, _ => BtnShare.Visibility }; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { ViewPagerView = FindViewById <ViewPager>(Resource.Id.pager); CircleIndicatorView = FindViewById <CircleIndicator>(Resource.Id.indicator); TxtProductPrice = (TextView)FindViewById(Resource.Id.tv_price); TxtProductNew = (TextView)FindViewById(Resource.Id.BoleanNew); TxtProductInStock = (TextView)FindViewById(Resource.Id.BoleanInStock); TxtProductDescription = (SuperTextView)FindViewById(Resource.Id.tv_description); TxtProductLocation = (TextView)FindViewById(Resource.Id.tv_Location); TxtProductCardName = (TextView)FindViewById(Resource.Id.card_name); TxtProductTime = (TextView)FindViewById(Resource.Id.card_dist); BtnContact = (Button)FindViewById(Resource.Id.cont); UserImageAvatar = (ImageView)FindViewById(Resource.Id.card_pro_pic); ImageMore = (ImageView)FindViewById(Resource.Id.Image_more); IconBack = (ImageView)FindViewById(Resource.Id.iv_back); BtnLike = FindViewById <LinearLayout>(Resource.Id.linerlike); BtnComment = FindViewById <LinearLayout>(Resource.Id.linercomment); MainSectionButton = FindViewById <LinearLayout>(Resource.Id.mainsection); BtnWonder = FindViewById <LinearLayout>(Resource.Id.linerSecondReaction); ImgWonder = FindViewById <ImageView>(Resource.Id.image_SecondReaction); TxtWonder = FindViewById <TextView>(Resource.Id.SecondReactionText); LikeButton = FindViewById <ReactButton>(Resource.Id.ReactButton); if (AppSettings.PostButton == PostButtonSystem.ReactionDefault || AppSettings.PostButton == PostButtonSystem.ReactionSubShine || AppSettings.PostButton == PostButtonSystem.Like) { MainSectionButton.WeightSum = 2; BtnWonder.Visibility = ViewStates.Gone; } else if (AppSettings.PostButton == PostButtonSystem.Wonder) { MainSectionButton.WeightSum = 3; BtnWonder.Visibility = ViewStates.Visible; ImgWonder.SetImageResource(Resource.Drawable.ic_action_wowonder); TxtWonder.Text = Application.Context.GetText(Resource.String.Btn_Wonder); } else if (AppSettings.PostButton == PostButtonSystem.DisLike) { MainSectionButton.WeightSum = 3; BtnWonder.Visibility = ViewStates.Visible; ImgWonder.SetImageResource(Resource.Drawable.ic_action_dislike); TxtWonder.Text = Application.Context.GetText(Resource.String.Btn_Dislike); } if (!AppSettings.SetTabDarkTheme) { ImageMore.SetColorFilter(Color.Black); } if (AppSettings.FlowDirectionRightToLeft) { IconBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl); } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }