Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change fragment when click on a day #4

Open
evivar opened this issue Dec 19, 2019 · 1 comment
Open

Change fragment when click on a day #4

evivar opened this issue Dec 19, 2019 · 1 comment

Comments

@evivar
Copy link

evivar commented Dec 19, 2019

I don't know why when I try to change the calendar fragment to another one when I click o a day using initCalderItemClickCallback method, it doesn't work

Here is the code:
calenderEvent.initCalderItemClickCallback(new CalenderDayClickListener() {
@OverRide
public void onGetDay(DayContainerModel dayContainerModel) {
dateString = dayContainerModel.getYear() + "-" + (dayContainerModel.getMonthNumber() + 1) + "-" + dayContainerModel.getDay();
getActivity().getSupportFragmentManager().beginTransaction()
.setCustomAnimations(R.anim.enter_from_right, R.anim.exit_to_right, R.anim.enter_from_right, R.anim.exit_to_right)
.replace(R.id.fragmentContainer_patient, HistoryCrisisAndDiaryFragment.create(patient, dateString), "HISTORY_CRISIS_AND_DIARY_FRAGMENT")
.addToBackStack(null)
.commit();
}
});

@evivar
Copy link
Author

evivar commented Dec 20, 2019

@mahimrocky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant