IoT-Gadgets-Logo-272-90

TwimGo v3.0.6 Released - MeeGo / Maemo

By
Ash
 - 
Aug 28, 2011

 

 
Minor update to TwimGo this weekend. Release notes for v3.0.6:

  • Pull down timeline to refresh
  • Scroll to bottom to automatically load more tweets
  • Reply to direct message is sent as direct message

It was pretty easy to add the auto “load more” functionality as both GridView (used in landscape mode) and ListView (portait mode) have a property atYEnd to check if user have scrolled to bottom of the timeline. I added a simple Timer that checks this property in every 0,5 seconds and starts to load more tweets if necessary.

Pull down to refresh was a bit trickier but I ended up checking the atYBeginning property of ListView/Gridview and deterimine the extra pull with the contentY property. So the code is something like this:


Timer {
interval: 500
repeat: true
onTriggered: {
if( tweetsList.atYBeginning &&
tweetsList.contentY tweetsList.refresh = true;
}
}
}

ListView {
id: tweetsList
property bool refresh: false
..
onMovingChanged: {
if(tweetsList.refresh) {
tweetsList.refresh = false;
// Refresh timeline
}
}
}

TwimGo project page for info and Downloads

http://projects.developer.nokia.com/twimgo

IoT-Gadgets-Logo-272-90

About us

IoT Gadgets is dedicated to bring you all the Internet of Things IoT news that pertains to gadgets. Simple. We love for you to join us on this journey.

Contact us: [email protected]

FOLLOW US

crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram