We’re building an app, and I’m hoping to get some help or fresh ideas on a challenge we’re facing.
In our app, users can add exercises to their training plans. Pretty standard. But things get more complex when different training methods come into play, like bi-sets, tri-sets, rest pause, etc. For example, a bi-set involves doing two exercises in a row, tri-set means three, and so on.
What we need is a way to dynamically show these exercises together on the screen, depending on the selected method. So, if a user picks “tri-set,” we’d like three exercises to appear side by side or in sequence, and so on for the other methods.
The only way I can currently think of doing this is by creating multiple containers, each with different visibility conditions based on the selected method. The problem is, this quickly turns the “components” panel and the screen into a long, messy list — which makes managing or editing things later much more difficult.
So, my question is: Is there a cleaner or more scalable way to achieve this dynamic layout without cluttering the screen with tons of conditional containers?
I’d really appreciate any ideas, workarounds, or Glide-specific features I might be missing. Thanks so much in advance!
I have the same problem when i starting with Glide, my first advice is: USE GLIDE TABLE in your App,
You need to know if the user is the one who adds his own exercises, that is, if he will create his own exercises or if he will choose the available exercises that you add as available, once you know the way to operate you can create a plan to solve your problem
When you say “so-on for the other methods”, do you mean two exercises in a row would mean a container with 2 columns, 4 exercise in a row would mean 4 columns?
Actually, what I’m aiming for is a way to set up different training methods, each with a varying number of exercises. Some methods might require 5, 6, or even more exercises, while others might need just 2.
If it helps, I can share a breakdown of all the methods. But my main concern right now is to show different containers depending on the exercise method’s.
If I understand you correctly, you can store multiple methods inside a single cell as a comma-delimited list, then split that into an array and relate back to the original list of exercises. Does that work for you?