private void updateSwipeRightOnboardingStep(MainLogCellViewHolder lastTimeEntry) { swipeRightPopup?.Dismiss(); if (lastTimeEntry == null) { return; } if (swipeRightOnboardingStepDisposable != null) { swipeRightOnboardingStepDisposable.Dispose(); swipeRightOnboardingStepDisposable = null; } swipeRightOnboardingStepDisposable = swipeRightOnboardingStep .ManageVisibilityOf( visibilityChanged, swipeRightPopup, lastTimeEntry.ItemView, (window, view) => PopupOffsets.FromDp(16, -4, Context)); if (swipeRightOnboardingAnimationStepDisposable != null) { swipeRightOnboardingAnimationStepDisposable.Dispose(); swipeRightOnboardingAnimationStepDisposable = null; } swipeRightOnboardingAnimationStepDisposable = swipeRightOnboardingStep .ManageSwipeActionAnimationOf(mainRecyclerView, lastTimeEntry, AnimationSide.Right); }
private void updateTapToEditPopupWindow(View firstTimeEntry) { if (editTimeEntryOnboardingStepDisposable != null) { editTimeEntryOnboardingStepDisposable.Dispose(); editTimeEntryOnboardingStepDisposable = null; } if (tapToEditPopup != null) { tapToEditPopup.Dismiss(); } tapToEditPopup = tapToEditPopup ?? PopupWindowFactory.PopupWindowWithText( this, Resource.Layout.TooltipWithLeftTopArrow, Resource.Id.TooltipText, Resource.String.OnboardingTapToEdit); var storage = ViewModel.OnboardingStorage; editTimeEntryOnboardingStepDisposable = new EditTimeEntryOnboardingStep(storage, Observable.Return(false)) .ManageDismissableTooltip( tapToEditPopup, firstTimeEntry, (window, view) => PopupOffsets.FromDp(16, -4, this), storage); }
private void prepareOnboarding() { var storage = ViewModel.OnboardingStorage; new CategorizeTimeUsingProjectsOnboardingStep(storage, ViewModel.HasProject) .ManageDismissableTooltip( projectTooltip, projectContainer, (window, view) => PopupOffsets.FromDp(16, 8, this), storage) .DisposedBy(DisposeBag); }
private void prepareOnboarding() { var storage = ViewModel.OnboardingStorage; var hasProject = ViewModel.ProjectClientTask.Select(projectClientTask => projectClientTask.HasProject); new CategorizeTimeUsingProjectsOnboardingStep(storage, hasProject) .ManageDismissableTooltip( Observable.Return(true), projectTooltip, projectButton, (window, view) => PopupOffsets.FromDp(16, 8, this), storage) .DisposedBy(DisposeBag); }
private void updateTapToEditOnboardingStep(MainLogCellViewHolder oldestVisibleTimeEntryViewHolder) { tapToEditPopup?.Dismiss(); if (oldestVisibleTimeEntryViewHolder == null) { return; } if (editTimeEntryOnboardingStepDisposable != null) { editTimeEntryOnboardingStepDisposable.Dispose(); editTimeEntryOnboardingStepDisposable = null; } editTimeEntryOnboardingStepDisposable = editTimeEntryOnboardingStep .ManageVisibilityOf( tapToEditPopup, oldestVisibleTimeEntryViewHolder.ItemView, (window, view) => PopupOffsets.FromDp(16, -4, this)); }