Stop Android switching view mode

4 posts, 1 answers
  1. Ian
    Ian avatar
    68 posts
    Member since:
    Jul 2017

    Posted 18 Sep 2018 Link to this post

    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?
  2. Answer
    Didi
    Admin
    Didi avatar
    384 posts

    Posted 19 Sep 2018 Link to this post

    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
  3. Mauro
    Mauro avatar
    2 posts
    Member since:
    Nov 2011

    Posted 17 Oct 2018 in reply to Didi Link to this post

    Hi Didi,

    what about if I want use DoubleTap for custom behavior?

    Thanks

  4. Didi
    Admin
    Didi avatar
    384 posts

    Posted 19 Oct 2018 Link to this post

    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
Back to Top