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
Developer
rnickel
Posts: 62
Registered: ‎10-29-2008
My Device: 9800

Pull to Refresh example on GitHub

I spent a bit of time over the past few weeks creating a Pull to Refresh example. The project is fully functional and up on GitHub. Check it out and let me know what you think

 

https://github.com/mrnickel/bb10pulltorefresh

 

shamless self: http://www.ryannickel.com/2013/02/blackberry-10-pull-to-refresh/

Please use plain text.
Developer
sketch34
Posts: 54
Registered: ‎05-23-2012
My Device: Developer

Re: Pull to Refresh example on GitHub

Thanks for this. But how do I import into Momentics? I get error "Invalid project description." when trying to import via "Existing Code as BlackBerry C/C++ Makefile Project".

----
I know exactly where the problem *might* be.
Please use plain text.
Developer
rnickel
Posts: 62
Registered: ‎10-29-2008
My Device: 9800

Re: Pull to Refresh example on GitHub

My bad! Forgot to add a few files to the project. Clone it and try again :smileyhappy:

Please use plain text.
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: Pull to Refresh example on GitHub

Thank you for your update. I tried by cleaning and building but there is a build error : "No rule to make target `precompiled.h', needed by `o.le-v7-g/.obj/PullToRefresh.gch/c++'.  Stop.    PullToRefresh             C/C++ Problem"

May you be able to have a look? I have interest to see your application. Thanks




p(^_^)q
Good good study, day day up
Please use plain text.
Trusted Contributor
AllSystemGo
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800

Re: Pull to Refresh example on GitHub

Works like a charm for me.

I downloaded his project unzipped it, then import it in momentics and compiled it without a problem.

Thank you for the sample.
Please use plain text.
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: Pull to Refresh example on GitHub

I found that there is not precompiled.h in his project. Did you create by yourselves then build ok?




p(^_^)q
Good good study, day day up
Please use plain text.
Trusted Contributor
AllSystemGo
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800

Re: Pull to Refresh example on GitHub

No I just unzipped the project, then I use the import method in momentic, then I compiled the project in momentic using CTRL + B and it worked.

Please use plain text.
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: Pull to Refresh example on GitHub

I am using the same way as yours. My SDK version is BB10 Dev alpha Native SDK 10.0.9.2318. Is it same as your version?




p(^_^)q
Good good study, day day up
Please use plain text.
Developer
joelajean
Posts: 132
Registered: ‎01-25-2010
My Device: Z30, Z10, Q10, Dev Alpha B & Bold 9900

Re: Pull to Refresh example on GitHub

Great stuff !!! Simple to implement on listview... can the same be applied on a ScrollView object. The ScrollView does not expose the leadingVisualSnapThreshold & leadingVisual properties...

Any suggestions ?

Please use plain text.
Developer
rnickel
Posts: 62
Registered: ‎10-29-2008
My Device: 9800

Re: Pull to Refresh example on GitHub

I had briefly looked into getting it to work on the ScrollView but i haven't gotten anywhere with it yet.

 

If/when I figure it out I'll post another github project.

 

In the mean time I'm trying to make the list view even easier to implement!

 

Stay tuned.

Please use plain text.