This is a migrated thread and some comments may be shown as answers.

Stop Android switching view mode

3 Answers 73 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 18 Sep 2018, 11:10 AM
If I double tap on the Android calendar it switches to year mode. Is there a way to stop this such that the calendar is fixed in month mode?

3 Answers, 1 is accepted

Sort by
0
Accepted
Didi
Telerik team
answered on 19 Sep 2018, 01:59 PM
Hi Ian,

By default the RadCalendar's DoubleTapToChangeDisplayMode gesture is set to true. If the gesture is performed while the calendar is in month view, it is changed to year view. In order to prevent this you should implement a custom renderer. Please take a look at the CustomCalendarRenderer.cs file inside the Android project how to set the DoubleTapToChangeDisplayMode to false. In case you want to use other gestures to change the display date or display mode of the control for Android, please take a look at the RadCalendarView Gestures and Transitions article from our native android calendar.

I hope the provided information was helpful.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mauro
Top achievements
Rank 1
answered on 17 Oct 2018, 03:52 PM

Hi Didi,

what about if I want use DoubleTap for custom behavior?

Thanks

0
Didi
Telerik team
answered on 19 Oct 2018, 10:38 AM
Hi Mauro,

The RadCalendar control does not provide a mechanism to set a custom behavior OnDoubleTap. However you can provide a TouchListener where you can handle several events like DoubleTap, SingleTap, LongPress, etc. You can take a look at the CustomCalendarRenderer.cs inside the Android project how custom behavior could be implemented on DoubleTap for Android.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar & Scheduling
Asked by
Ian
Top achievements
Rank 1
Answers by
Didi
Telerik team
Mauro
Top achievements
Rank 1
Share this question
or