public async Task ShowHelpView(HelpFAQType helpFAQType) { ShowLoader(); var helpView = new ModalHelpView(Activity, helpFAQType); await helpView.Show(); HideLoader(); }
public async Task DesignHelpView(LinearLayout helpView, HelpFAQType helpType) { var dataList = await new HelpFAQManager().GetHelpFAQList(helpType); if (dataList != null) { foreach (var item in dataList) { var view = Activity.LayoutInflater.Inflate(Resource.Layout.template_home_help_view, null); var titleView = view.FindViewById <TextView>(Resource.Id.helpTitle); var descriptionView = view.FindViewById <TextView>(Resource.Id.helpDescription); var imageView = view.FindViewById <ImageView>(Resource.Id.downArrow); titleView.Text = item.Title; descriptionView.Text = item.Description; titleView.Click += (sender, e) => { if (descriptionView.Visibility.Equals(ViewStates.Gone)) { view.Selected = true; descriptionView.Visibility = ViewStates.Visible; var actualHeight = descriptionView.Paint.GetFontMetrics().Bottom = descriptionView.Paint.GetFontMetrics().Top; ValueAnimator mAnimator = GetSlideAnimator(0, (int)Math.Ceiling(actualHeight), descriptionView); mAnimator.Start(); imageView.Animate().Rotation(180f); } else { view.Selected = false; int finalHeight = descriptionView.Height; ValueAnimator mAnimator = GetSlideAnimator(finalHeight, 0, descriptionView); mAnimator.Start(); mAnimator.AnimationEnd += (object IntentSender, EventArgs arg) => { descriptionView.Visibility = ViewStates.Gone; }; imageView.Animate().Rotation(0.0f); } }; helpView.AddView(view); } } }
public HelpViewController(HelpFAQType helpType, UIImage topImage = null, String topText = null) : base() { this.topImage = topImage; this.topText = topText; this.helpType = helpType; if (topImage != null) { extraRow++; } if (topText != null) { extraRow++; } }
public ModalHelpViewController(HelpFAQType helpType) : base() { this.helpType = helpType; }
public async Task <List <HelpFAQDataModel> > GetHelpFAQList(HelpFAQType helpType) { var dataHandler = ApplicationCore.Container.Resolve <IHelpFAQDataAccess>(); return(await dataHandler.GetHelpFAQList(helpType)); }
public ModalHelpView(Context context, HelpFAQType helpType) { this.context = context; this.helpType = helpType; }