Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
setiawand
Posts: 41
Registered: ‎07-12-2012
My Device: Orlando, Dev Alpha

Release to refresh action on ListView

how to implement "release to refresh" action on ListView ?

Developer
soaman
Posts: 849
Registered: ‎03-03-2011
My Device: Z10

Re: Release to refresh action on ListView

Very good question.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB

Re: Release to refresh action on ListView

I would love to know the same
BlackBerry Development Advisor (Retired)
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha

Re: Release to refresh action on ListView

Hi there,

I am assuming you mean implementing the action of "pulling down" the list view in order to post a refresh request to the model shown by the list view;

There are no such components 'out of the box' for this; You would need to implement this using a CustomControl with a ListView in it and implement your own signals depending on the scrolling position of the user (if 'scroll down' is triggered and user is at the top of the list, fire a refresh signal).

If you feel that this functionality should be available in the API, I would recommend posting a feature request on the Issue Tracker:
https://www.blackberry.com/jira/secure/Dashboard.jspa


Cheers,

Martin

Developer
dkonigs
Posts: 256
Registered: ‎07-25-2008
My Device: Bold 9900

Re: Release to refresh action on ListView

Well, there is no built-in control to completely implement this.  But there is something that can at least meet you half-way. ListView now has a property where you can associate a "leading visual" with it:

https://developer.blackberry.com/cascades/reference/bb__cascades__listview.html#leadingvisual

 

I think this may be where you'd hook in a "pull to refresh" control.

Developer
Pumano-
Posts: 215
Registered: ‎11-05-2011
My Device: Z10

Re: Release to refresh action on ListView

Pull to refresh is patented feature?
Developer
soaman
Posts: 849
Registered: ‎03-03-2011
My Device: Z10

Re: Release to refresh action on ListView

I don't think so.

I will check this leading visual property.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Developer
Pumano-
Posts: 215
Registered: ‎11-05-2011
My Device: Z10

Re: Release to refresh action on ListView

Today pull to refresh patented by Twitter, because they buy company (company have iOS twitter client with patented Pull to Refresh) owner of pull to refresh don't ask something for using this feature, but what Twitter thinking about it?
Developer
Pumano-
Posts: 215
Registered: ‎11-05-2011
My Device: Z10

Re: Release to refresh action on ListView

Maybe someone know more than I in this theme?
Developer
soaman
Posts: 849
Registered: ‎03-03-2011
My Device: Z10

Re: Release to refresh action on ListView

First findings:
When you touch and move the list, only inner parts (list items) move, so list doesn't change Y axis.

My opinion is that developer must extend ListView class in C++.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development