mvmike / min-cal-widget

Minimal calendar widget
BSD 3-Clause "New" or "Revised" License
89 stars 15 forks source link

Widget pagination feature request #30

Open bushrang3r opened 5 years ago

bushrang3r commented 5 years ago

I would love to have paging buttons on the widget to be able to see future and past months.

mvmike commented 5 years ago

Meant the widget to be static, in fact created it since most of the f-droid / play store alternatives were paginated

mvdan commented 5 years ago

There's also no end to what actions could be implemented. Pagination? Seeing an event's details? Switching to weekly/daily views? All of these are implemented in actual Calendar apps, which is what you get when you click the widget.

bushrang3r commented 5 years ago

Ah yes, understood. Yes, I guess tapping the widget does give you the same thing essentially, by opening the calendar app.
Thanks for a great widget :1st_place_medal:

532910 commented 5 years ago

Meant the widget to be static, in fact created it since most of the f-droid / play store alternatives were paginated

I always thought that the main feature of min-cal-widget comes from it's name: the most compact size. All other widgets on f-droid / play store look extremely ugly on the same size as on min-cal-widget keeps extremely beautiful.

Could you explain what is bad with pagination?

Moreover, pagination could be reached via left-right swipe, without buttons.

532910 commented 5 years ago

There's also no end to what actions could be implemented. Pagination? Seeing an event's details? Switching to weekly/daily views? All of these are implemented in actual Calendar apps, which is what you get when you click the widget.

It's not true. While pagination has no impact on size, event's details and other views has significant size impact, making it bloated-cal-widget.

mvmike commented 5 years ago

@532910 completely agree with everything you said.

Even though it's a feature i won't use, could consider doing pagination through swiping and make it configurable, but will require a bit of work since event instances should be fetch depending not only on the current date and also aligned with what's shown in the homescreen

mvmike commented 5 years ago

After further investigation, seems that widgets can only receive taps and not gestures, so not sure what to do with this issue. IMHO, I'd avoid adding buttons to change months at any cost

532910 commented 5 years ago
  1. https://github.com/plusonelabs/calendar-widget is a scrollable widged for example. Or it's just a long content with small viewport, non-paginated?

  2. There is a stackview widget type, but I wasn't able to find how it looks like.

mvmike commented 5 years ago
  1. it's just long content that can be scrolled, there isn't any gesture intent
  2. it's something like this
532910 commented 5 years ago

OK. Looks like my idea is impossible. What about two small buttons before and after month name. I don't this they shout affect widget size.

image image

Even for extremy small size, when only two weekday lettert fits there is a space for two <> buttons: image image

532910 commented 3 years ago

https://developer.android.com/about/versions/12/features/widgets#new-compound-buttons

Could this help?

mvmike commented 3 years ago

There is no complexity in adding buttons (this could have been done before regardless of the new material you design, as it happens with the configuration one) but with the gestures

OmlineEditor commented 2 years ago

let's add buttons to change the month only if the widget is larger than a certain size, if the widget is small then the buttons do not appear