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);
            }
        }
Пример #2
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);
            }
        }
Пример #3
0
 public ShowApplyJobsAdapter(Activity context)
 {
     try
     {
         HasStableIds    = true;
         ActivityContext = context;
         ReadMoreOption  = new StReadMoreOption.Builder()
                           .TextLength(200, StReadMoreOption.TypeCharacter)
                           .MoreLabel(context.GetText(Resource.String.Lbl_ReadMore))
                           .LessLabel(context.GetText(Resource.String.Lbl_ReadLess))
                           .MoreLabelColor(Color.ParseColor(AppSettings.MainColor))
                           .LessLabelColor(Color.ParseColor(AppSettings.MainColor))
                           .LabelUnderLine(true)
                           .Build();
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Пример #4
0
 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;
         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);
     }
 }
Пример #6
0
 public ReplyCommentAdapter(ReplyCommentActivity context)
 {
     try
     {
         HasStableIds      = true;
         ActivityContext   = context;
         PostEventListener = new CommentClickListener(ActivityContext, "Reply");
         ReadMoreOption    = new StReadMoreOption.Builder()
                             .TextLength(250, StReadMoreOption.TypeCharacter)
                             .MoreLabel(ActivityContext.GetText(Resource.String.Lbl_ReadMore))
                             .LessLabel(ActivityContext.GetText(Resource.String.Lbl_ReadLess))
                             .MoreLabelColor(Color.ParseColor(AppSettings.MainColor))
                             .LessLabelColor(Color.ParseColor(AppSettings.MainColor))
                             .LabelUnderLine(true)
                             .Build();
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Пример #7
0
 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);
     }
 }
Пример #8
0
 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);
     }
 }