Wednesday, May 16, 2012

Bug reports

I just got aware of a bug in the pro version of the app, by one of my users. It is fixed for now, but if you experience anything unusual whether or not it being just minor or major, feel free to leave a comment in this post.

Tuesday, April 24, 2012

A Simple Checklist Pro Version

I've just added an ad-free version of A Simple Checklist, which you can find here:
⇾ A Simple Checklist Pro


People have been asking me for an ad-free version for some time, and I've finally had some spare time for working on a new version.


I've also added a way to import your checklists from the previous version. It is a bit experimental right now, so even after you've imported your checklist, I will encourage you to still keep the free version for now as a backup, just so you don't end up with loss of data.



Also I am experimenting a bit with some of the design, and therefore have removed the red vertical line to give it a more clean look. Let me know what you think though and I will take it into consideration.

Thursday, February 16, 2012

500 installs milestone reached

So, about a week ago, I just hit 500 installs on my App!

Also, I've updated the App with a few new features:
  •  You can now hide checked elements - Elements which gets checked will fade away after 3 seconds.
  • Quckadd - A faster way to add elements to your checklist.
  • Voice recognition - Allows you to add elements just by saying it out loud.
The new features are off by default, not to try to force it down anyones throats, and to still keep the UI nice and simple, but you can enable them in the options menu.

Tuesday, February 14, 2012

Moving elements in a ListView


»How do I move elements i a ListView?
I see this question asked a lot recently, so let me just try to explain some ways you can archive this, and hopefully I'll get asked that question a lot less in the near future hah.

Basically there are two good ways I've found out to do it, one way is to use the nicely custom made ListView called cwac-touchlist partially coded by CommonsWare from Stackoverflow, partially because he's taken the source code for the custom ListView in the default Android music player worked a little further on it, and bundled it in a nice, easy to use way. It can still be a little troublesome to get it working, and will most likely require a  lot of little tweaks to make it fit just about right in your own project.

There is already a good explanation in the before mentioned link to get it working in your project, so I won't use time to basically just say what he has already written.
--

Now, if you like me could use a more lightweight, less feature rich, but more simple, way to archive moving of elements in a ListView, read on. My version doesn't use drag and drop, however, it is possible to do something alike, but it requires a little extra work.

To put into words what I am really doing, I am simply swapping two elements in the ListView, and then put on a nice animation on each of the views. It sounds simple enough, and it also is.

With all the fat removed it basically comes down to these three parts
  • View.onTouch() handler
  • swapViews() method
  • swapElements() method
In my View.getView(), where the View is generated, I tie an onTouch() handler on each of my slide views (eg. ivSlide), figure out which direction the user´s finger is moving, and set the position for the element which is about to get swapped. Then I find my swapView for the swapPosition, and call swapViews() with the view I pressed, and the swapView.

Everything that happenes in swapView() is simply where the animation of the two views are handled, and when the animations are finished, swapElements() gets called with the positions of the two elements getting swapped.

⇾ The full source code can be found here

⇾ And the more interesting part would be here