[SailfishDevel] Menus in Long ListViews

Matthew Vogt matthew.vogt at jollamobile.com
Sun Mar 3 01:24:16 UTC 2013


Hi Lucien.

The SilicaListView (as well as SilicaGridView and SilicaFlickable) provides the scrollToTop() function to rapidly return to the top of the list.
You can see an example of its use in the MenuPage in the example componentsgallery application, inside the PushUpMenu.

Thanks,
Matt

________________________________________
From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Lucien XU [sfietkonstantin at free.fr]
Sent: Sunday, March 03, 2013 8:08 AM
To: devel at lists.sailfishos.org
Subject: Re: [SailfishDevel] Menus in Long ListViews

Hello,

I think that when you want to add an entry to the contacts, you might not want
to do that in the middle of the contact list ...

However, I would like to have a fast scroll capability, or something to "go
back on top", just in case that desire of creating a contact happened in the
middle of the browsing.

Cheers,
Lucien

Le samedi 2 mars 2013 11:58:48 Martin Grimme a écrit :
> Hi,
>
> one solution I that comes to my mind would be to overlay an "Add"
> IconButton over the list view, e.g. in the upper right corner. The
> SilicaListView would still occupy the whole page, but the button takes
> input precedence in that corner since it's rendered above.
>
>
> Martin
>
> 2013/3/2, Ruediger Gad <r.c.g at gmx.de>:
> > Hi,
> >
> > how would I realize the general menu in a long ListView?
> > As far as I understand, pull down/push up menus only work at the very
> > top/bottom of a list?
> >
> > This could become tedious in some circumstances.
> > E.g., imagine a contacts list with 100+ entries.
> > Having to scroll to the very top/bottom just to add a new entry may
> > become cumbersome.
> >
> > Just had a brainstorm with fk_lx on irc about this:
> > One possible solution could be to place the ListView inside a Flickable,
> > with a little "empty space" attached to the top/bottom of the ListView,
> > and add the menus to the Flickable.
> > But I don't know if that conflicts with other gestures that are
> > triggered when swiping from the top or bottom edge of the screen.
> >
> > Another option could be to have such a general "add" functionality
> > accessible in the context menu that is displayed for every item in the
> > list.
> > However, depending on the use case, this (having a general action in a
> > specific context menu) may be counter intuitive or misleading.
> >
> >
> >
> > Best regards,
> >
> > Ruediger
> >
> >
> >
> >
> > --
> > http://ruedigergad.com
>
> _______________________________________________
> SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list


More information about the Devel mailing list