-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Google Finance is now out of beta with improved portfolio tracking and a new Android app
By Karthik Mudaliar,
- google finance
- (and 4 more)
- 1 reply
- 2 views
-
Amazon Prime Day slashes Samsung's newest Galaxy Watch Ultra by 45 percent
By Karthik Mudaliar,
- samsung
- samsung galaxy watch ultra
- (and 9 more)
- 0 replies
- 2 views
-
Google begins rolling out its post-Epic Play Store billing model next week
By Karthik Mudaliar,
- google play
- (and 6 more)
- 0 replies
- 2 views
-
Free Software Foundation Europe pushes EU to force Google to allow AI uninstalls on Android
By zikalify,
- 9 replies
- 2 views
-
Samsung Galaxy XR arrives in the UK with new AI and enterprise features
By Fiza Ali,
- samsung
- samsung galaxy xr
- (and 8 more)
- 0 replies
- 2 views
-
Question
SirEvan
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.
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
https://www.neowin.net/forum/topic/1097645-javapaid-help-me-figure-out-how-to-create-a-sectioned-listview-earn-75/Share on other sites
0 answers to this question
Recommended Posts