• 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.

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Posts

    • AltSendme 0.4.1 by Razvan Serea AltSendme is a minimal, cross-platform application designed for fast, secure, and private peer-to-peer file transfers. It allows users to send files or entire directories directly between devices without relying on cloud servers, accounts, or any personal information. Everything is encrypted end-to-end using modern protocols like QUIC and TLS 1.3, ensuring both strong security and low-latency performance. Transfers are verified with BLAKE3 for data integrity, and interrupted downloads automatically resume, making the experience reliable even on unstable connections. You can transfer anything—images, videos, documents, and more. Integrity checks are performed on both ends, so your files are automatically verified for correctness during both sending and receiving. AltSendme works seamlessly across local networks or long-distance links, capable of saturating multi-gigabit connections for extremely fast delivery. With built-in NAT traversal and encrypted relay fallback, it connects devices almost anywhere. The app integrates with the Sendme CLI and will soon support mobile and web platforms. Fully free and open-source, AltSendme offers a lightweight, privacy-first alternative to traditional cloud-based services, removing size limits, upload costs, and unnecessary data exposure. AltSendme 0.4.1 changelog: Release Highlights Self-hosted relays: Run your own iroh relay so transfers don't rely on public infrastructure. Includes a full deployment template in deploy/relay/ with Docker Compose for a VPS and configuration examples for production use. Fly.io support: One-click deploy template for Fly.io, including a quick-start config (fly.dev.toml) for testing without a custom domain, plus production setup with Let's Encrypt and your own hostname. Relay settings UI: New Settings → Network panel to choose how AltSendme connects: automatic public relays, custom self-hosted URLs (with optional auth token), or disabled. Test connections, verify latency, and see live relay status in the footer. Disable relays: Turn off relay servers entirely when you only need same-network transfers (e.g. LAN). Direct connections only. No relay hop required when devices can reach each other. Android graduates from beta: Android is now part of the regular release cycle alongside desktop. APKs ship with each version (universal, arm64, and armv7). Other improvements Private relay access control via shared auth token Relay fallback notifications when a custom relay is unreachable Broadcast mode toggle in sharing settings Android release build fixes (split-per-ABI APKs, universal APK preservation) UI polish: mobile safe-area insets, dropzone layout, transfer progress animation Bug fixes for minification-related serialization issues and system tray icon loading What's Changed feat(relay): add relay status functionality and settings UI (a120cdf) feat(relay): implement custom relay server configuration and verification (51276c7) feat(relay): add configuration for private relay access and enhance observability features (48fbabf) feat(relay): enhance relay URL validation, display connection status (d4fffa0) feat(relay): add RelayChangeGuard component and enhance relay-related translations (16ba514) feat(broadcast): add toggle setting for broadcast mode in sharing UI (ca6d977) fix(relay): correct QUIC discovery port, pin image, templatize fly.dev (52a2ba5) fix: More broken serialization due to minification (67491a9) fix(android): preserve true universal APK across per-ABI builds (e9f256f) fix(ui): conditional safe-area insets padding on mobile (1182f0e) refactor(transfer): CircularRing component animation fix (944572b) chore(android): drop x86 and x86_64 release APKs, keep universal+arm64+armv7 (34ada0b) Download: AltSendme 0.4.1 | ARM64 | ~9.0 MB (Open Source) Download: AltSendme for MacOS | Android Links: AltSendme Home Page | GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You are mostly right about the ephemeral nature of it. As I mention in the article, if you dont add a second device or take a backup of your account before uninstalling it, then yes you will lose access to your account. That said, in terms of actual user experience when you sync multiple devices your message history carries across and there's also a Saved Messages chat like there is on Telegram to send messages and attachments between your installs. But yh, what you point out are correct and its not trying to emulate Messenger or Telegram.
    • OK so SearXNG is a meta search engine that you can install locally or use via a public instance. It scrapes other search engines which you choose and then sorts the results. Not as complicated as multiple relays
    • The only difference here is that you think you came up with these reasons. You didn't. These age old fearmongering lies (that were NEVER true) were funded by and the anger stoked by Putin through proxies like Farage (and later in the USA, Trump) and filtered down through the skinheads, Neonazis, etc. until it reached the uninformed, ignorant, and gullible -- never realizing they were being played for fools against their own best interests. Even now, despite all of the EVIDENCE proving that Brexit was a terrible mistake for ALL citizens of the UK and that its supporters were tricked by Putin's proxies into sabotaging their own nation, you're still here defending these well-known lies as if they were ever true. Not only are they not true. They NEVER were. So, when are you going to realize that you were lied to and actually get angry at the liars and charlatans who lied to you, instead of blaming the innocent people they lied to you about?
    • Dupe of "Microsoft further improving Windows 11 Taskbar with latest builds", published <20 minutes apart
  • Recent Achievements

    • Week One Done
      flexorcist earned a badge
      Week One Done
    • One Month Later
      Woland13 earned a badge
      One Month Later
    • Week One Done
      Woland13 earned a badge
      Week One Done
    • One Year In
      bernmeister earned a badge
      One Year In
    • Week One Done
      Scoobystu earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      +Edouard
      225
    3. 3
      PsYcHoKiLLa
      152
    4. 4
      Steven P.
      75
    5. 5
      FloatingFatMan
      71
  • Tell a friend

    Love Neowin? Tell a friend!