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
Trusted Contributor
harsha973
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone

Footer for ListView

Hi,

 

 

   I am having some functonality "Load more.." for the listview. This text should be appended at the bottom of the list view some thing like footer kind. Is there any default support from cascades to add a footer? Or should I have to add load more as the last item of provider?

 

 

Thanks,

Sha

Please use plain text.
BlackBerry Development Advisor (Retired)
erahnenfuehrer
Posts: 85
Registered: ‎05-25-2012
My Device: Limited Edition Z10
My Carrier: Bell

Re: Footer for ListView

Have you thought about infinitely loading data in the list so that you don't have to show an activity indicator?

 

Check out the video from our Cascades team:

 

BlackBerry Jam Europe 2013 - JAM358 -- Infinite Lists in Cascades  

 

http://www.youtube.com/watch?v=ReCF0ylyoUk

Please use plain text.
Regular Contributor
Q-T
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: Footer for ListView

Why not use a StackLayout with the list view to take up all the room, and a label anchored at the bottom.  If there is more to load progamatically set the label to visible, otherwise set to visibility to false. You can capture clicks on the label, and even animate its appearance and disappearance

Please use plain text.
Trusted Contributor
harsha973
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone

Re: Footer for ListView

The  Label which is at the bottom of stacklayout is not visible then? We need a scroll view. This may conflict wiht the scroll of listview.?

 

 

Please use plain text.
Trusted Contributor
harsha973
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone

Re: Footer for ListView

Thanks for the video. But I found it is done in QML with the help of listitemcomponent . How can we do the same in cpp. In cpp we are using ListItemProvider for the same purpose.

Please use plain text.
BlackBerry Development Advisor (Retired)
erahnenfuehrer
Posts: 85
Registered: ‎05-25-2012
My Device: Limited Edition Z10
My Carrier: Bell

Re: Footer for ListView

In your createItem class you can return a different type of VisualNode, one containing an Activitiy Indicator depending on the ListView and QString type that are passed in. 

Please use plain text.