Crossing things off lists in 0.9 SDK

Tutorials with advanced 'difficulty' and more Lines of Code.

Crossing things off lists in 0.9 SDK

Postby jsharkey » Tue Sep 16, 2008 6:38 am

A few months ago I wrote some code to let you "cross-off" things in a ListView. By wiping your finger left-to-right over an item it will add a strike-through effect to the text, and right-to-left would reverse the effect. Also, it stores the crossed-off status in a backend database.

http://www.jsharkey.org/blog/2008/09/15 ... id-09-sdk/

Full source code and APK for a TodoList example under GPLv3 license, and also a video showing the technique in action. :)
Attachments
todolist.png
todolist.png (38.63 KiB) Viewed 3417 times
jsharkey
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Feb 08, 2008 5:22 am

Top

Re: Crossing things off lists in 0.9 SDK

Postby tum0rc0re » Tue Sep 16, 2008 9:16 am

jsharkey wrote:A few months ago I wrote some code to let you "cross-off" things in a ListView. By wiping your finger left-to-right over an item it will add a strike-through effect to the text, and right-to-left would reverse the effect. Also, it stores the crossed-off status in a backend database.

http://www.jsharkey.org/blog/2008/09/15 ... id-09-sdk/

Full source code and APK for a TodoList example under GPLv3 license, and also a video showing the technique in action. :)


Thank you for this article. If you're not against, i translate some your articles on russian language. Ok?
JQ Soft web page:
[b][url=http://jqsoft.ru/]http://jqsoft.ru/[/url][/b]
My proffesional blog: [b][url=http://maximyudin.blogspot.com]http://maximyudin.blogspot.com[/url][/b]
Facebook: [b][url=http://www.facebook.com/maxim.yudin]http://www.facebook.com/maxim.yudin[/url][/b]
User avatar
tum0rc0re
Senior Developer
Senior Developer
 
Posts: 158
Joined: Sun Nov 25, 2007 7:15 am
Location: Moscow, Russia

Postby plusminus » Tue Sep 16, 2008 2:13 pm

Hey Jeff,

even the list-entries were worth reading :D, thanks :!:

Best Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby jsharkey » Tue Sep 16, 2008 5:00 pm

tum0rc0re: go right ahead with your translation :)

and lol, thanks plusminus :)
jsharkey
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Feb 08, 2008 5:22 am

Postby rmanromga » Wed Dec 03, 2008 6:37 pm

plusminus or jsharkley... I was just wondering why couldn't we just have used a custom view and implemented this in the OnTouchListener for the custom view showing each row? We could then put the code that you have in the OnTouchEvent in the OnTouchListener of the view to determine if it was really a horizontal swipe accross the view.. Maybe I'm missing something I was just thinking of an easier way without having to use an overlaying frame layout that intercepted the touches and "passed through" the touches that were not horizontal swipes... I will try it but I just wanted to get your opinion.... if it is fails I will probably just use jsharkley's method....


cheers,
--D
rmanromga
Developer
Developer
 
Posts: 43
Joined: Thu Dec 20, 2007 6:21 am
Location: Baltimore, MD USA

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests