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
            {
                ImageUser    = FindViewById <ImageView>(Resource.Id.imageAvatar);
                ImageFunding = FindViewById <ImageView>(Resource.Id.imageFunding);
                IconBack     = FindViewById <ImageView>(Resource.Id.iv_back);

                TxtUsername    = FindViewById <TextView>(Resource.Id.username);
                TxtTime        = FindViewById <TextView>(Resource.Id.time);
                TxtTitle       = FindViewById <TextView>(Resource.Id.title);
                TxtDescription = FindViewById <TextView>(Resource.Id.description);
                TxtFundRaise   = FindViewById <TextView>(Resource.Id.raised);
                TxtFundAmount  = FindViewById <TextView>(Resource.Id.TottalAmount);
                TxtDonation    = FindViewById <TextView>(Resource.Id.timedonation);
                BtnDonate      = FindViewById <Button>(Resource.Id.DonateButton);
                BtnShare       = FindViewById <Button>(Resource.Id.share);
                BtnContact     = FindViewById <Button>(Resource.Id.cont);

                TxtMore = FindViewById <TextView>(Resource.Id.toolbar_title);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, TxtMore, IonIconsFonts.AndroidMoreVertical);
                if (TxtMore != null)
                {
                    TxtMore.SetTextSize(ComplexUnitType.Sp, 20f);
                    TxtMore.Visibility = ViewStates.Gone;
                }

                ProgressBar = FindViewById <ProgressBar>(Resource.Id.progressBar);

                var font = Typeface.CreateFromAsset(Application.Context.Resources?.Assets, "ionicons.ttf");
                TxtDonation.SetTypeface(font, TypefaceStyle.Normal);

                if (AppSettings.FlowDirectionRightToLeft)
                {
                    IconBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl);
                }


                if (!AppSettings.MessengerIntegration)
                {
                    BtnContact.Visibility = ViewStates.Gone;
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Ejemplo n.º 3
0
        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 InitComponent()
        {
            try
            {
                UserProfileImage = (ImageView)FindViewById(Resource.Id.image_profile);
                CoverImage       = (ImageView)FindViewById(Resource.Id.iv1);

                IconBack             = (ImageView)FindViewById(Resource.Id.image_back);
                EditAvatarImageGroup = (LinearLayout)FindViewById(Resource.Id.LinearEdit);
                TxtEditGroupInfo     = (TextView)FindViewById(Resource.Id.tv_EditGroupinfo);
                TxtGroupName         = (TextView)FindViewById(Resource.Id.Group_name);
                TxtGroupUsername     = (TextView)FindViewById(Resource.Id.Group_Username);
                BtnJoin                  = (Button)FindViewById(Resource.Id.joinButton);
                BtnMore                  = (ImageButton)FindViewById(Resource.Id.morebutton);
                IconPrivacy              = (ImageView)FindViewById(Resource.Id.IconPrivacy);
                PrivacyText              = (TextView)FindViewById(Resource.Id.PrivacyText);
                CategoryText             = (TextView)FindViewById(Resource.Id.CategoryText);
                IconEdit                 = (TextView)FindViewById(Resource.Id.IconEdit);
                TxtMembers               = (TextView)FindViewById(Resource.Id.membersText);
                InviteText               = (TextView)FindViewById(Resource.Id.InviteText);
                FloatingActionButtonView = FindViewById <FloatingActionButton>(Resource.Id.floatingActionButtonView);

                JoinRequestImage1 = (ImageView)FindViewById(Resource.Id.image_page_1);
                JoinRequestImage2 = (ImageView)FindViewById(Resource.Id.image_page_2);
                JoinRequestImage3 = (ImageView)FindViewById(Resource.Id.image_page_3);

                LayoutJoinRequest = (RelativeLayout)FindViewById(Resource.Id.layout_join_Request);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconEdit, IonIconsFonts.Edit);

                if (AppSettings.FlowDirectionRightToLeft)
                {
                    IconBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(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);
            }
        }