I am creating an app as a challenge wheres users can quickly generate schematic lay-outs of an area. There is a start node and people can either extend the node or create a new node up, right, left, or down. Each node describes something in that area (park, wood, whatever) The distances between nodes are always the same. Basically you build this lay-out node by node (just like you create the mindmap node by node in this video: https://www.reddit.com/r/AndroidStudio/comments/m57n0f/what_layout_on_android_allows_the_user_to_pan_the/?utm_source=share&utm_medium=mweb)
I want people to be able to pan and zoom out to quickly move from one end of the lay-out to the other to quickly add to or edit the layout. Except I don't know what layout to use. Using a horizontal and vertical layout doesn't seem to be the solution... (No zoom and pretty clunky because you can't go diagonally)
Bonus: How would you go about to programmatically add these new nodes if the distances and rules are always the same (similar to how it's shown in the video?)
I saw this blog post about dynamically adding an imageview and button relative to each other - which sounds like a solution, right? https://abhiandroid.com/ui/dynamic-relativelayout-params-programmatically.html