• 0

[JAVA][PAID] help me figure out how to create a sectioned listview, earn 75


Question

I've been trying to figure out sectioned listviews for a few days now, but I'm getting pretty confused because most of the examples I've found aren't documented well, or I can't figure out how to wrap it around code I already have.

What I'm trying to accomplish is something like the following screenshot from the cardiotrainer app.

post-26332-0-73319200-1344630415_thumb.p

A sectioned listview, with headers. I've even gone as far as decompiling the cardiotrainer APK to look at the layouts, and converting the classes.dex to a jar to see the code, but it uses a lot of custom controls for its lists and other things, so I wasn't able to figure out how to replicate it. Basically, the owners of the gym I'm doing this for want the users history to show, with data sectioned by month, total calories burned that month, and how many work outs. This screen is going to be replicated for 6 different activities, just with the data source changing per screen (their classes are: BJJ, Krav Maga, Crossfit, Bootcamp, and Kick Boxing). I am somewhat familiar with loading data into the listview rows, (using a custom row layout), I'm just perplexed by figuring out the array adapters and code required to section the list by Month/calories/workouts.

Data gets pulled from a MySQL database running on a server through a PHP web service. I followed the example here, and have that sample working well. I've modified it a little to also return a "color" to test adding and retrieving more rows from the database. If someone with skills in Java/Android development can modify the sample code there to return the product list as a list separated by created month (created_at column), I should be able to then figure out how to apply it later to the data I'm pulling. My plan is to get one activity to pull data and show it like the screenshot above, then replicate it for each other gym activity (6 times), pulling the correct data from the web service.

If you think you can figure it out and modify the code attached or at the link above, I'm looking for something easily understandable, so commenting would be helpful.

Some sample listviews I've found, but can't figure out:

http://code.google.c...azing-listview/

http://code.google.c...d-section-list/

Sample Code: AndroidConnectingToPhpMySQL.zip

I think it would take someone who knows this stuff no more than an hour, so I would think 75 USD via paypal would be a fair offer. If someone thinks more, I'm open to negotiation.

The URL to my VM running the MySql database for a test is: http://evansvn.dyndn...ndroid_connect/

MySQL username is: root

MySQL password is: evan

This is a VM that contains nothing except a LAMP server to test this out. PHPMYADMIN is running on it as well, http://evansvn.dyndn...999/phpmyadmin/ if you'd like to take a look at the sample DB, the login credentials are the same as the MySQL info. Database is "androidhive"

Thanks.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.