alamkanak / Android-Week-View

Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.
Apache License 2.0
3.42k stars 1.23k forks source link

How make make RectF moveable or drag #553

Open kingnightdrifter opened 5 years ago

kingnightdrifter commented 5 years ago

Hi, Rest of your Library is fantastic but I am stuck in one issue, Actually I want to make created event drag and drop. For this I have worked around 7-8 hours but failed to find a solution can you please tell me how to make RectF movable which is coming in onEventLongPress listener.

Any suggestion will be appreciated, thanks in advance.

vajjasivateja commented 3 years ago

Hi did you find any solution for this? Please help me if you found any. Thanks

ahmednabeel1991 commented 3 years ago

Hi did you find any solution for this? Please help me if you found any. Thanks

really not

desmondCTNG commented 2 years ago

I think the solution is to not use RectF, someone before said adding Views that are exactly on top of the rectangles. I think this solution will impact performance. My solution: https://github.com/Kiesco08/draggable-calendar-event has a draggable calendar, but it cannot create new events, and scroll horizontally. So, basically, I am combining the codes of draggable-calendar-event and Android-week-view together into a self-made calendar.