Tito_Lortex
Lurker
I'm stuck developing an App that does the following:
I can add "Spots" with the Add button at the bottom of the activity_main.xml, I add them programatically, so I have a Layout with the "Spot Editor" that are just buttons and Text Inputs of every row to be added.
I inflate the entire Layout as a View in the activity_main.xml, so then I just want to fill data in the buttons and text inputs and "Add the Spot", so I delete that View of "Edit the Spot" and put another View programatically just the same way that is the "Final Spot", that displays the filled data with Text, not Text Inputs.
With the pencil icon I want to go back to "Edit mode"...
How can I get the data from the programatically added Views to fill the new Views (that I'm also adding programatically to the layout)?
I can add "Spots" with the Add button at the bottom of the activity_main.xml, I add them programatically, so I have a Layout with the "Spot Editor" that are just buttons and Text Inputs of every row to be added.
I inflate the entire Layout as a View in the activity_main.xml, so then I just want to fill data in the buttons and text inputs and "Add the Spot", so I delete that View of "Edit the Spot" and put another View programatically just the same way that is the "Final Spot", that displays the filled data with Text, not Text Inputs.
With the pencil icon I want to go back to "Edit mode"...
How can I get the data from the programatically added Views to fill the new Views (that I'm also adding programatically to the layout)?
Attachments
-
WhatsApp Image 2020-07-28 at 00.59.56.jpeg39.8 KB · Views: 233
-
WhatsApp Image 2020-07-28 at 00.59.56(1).jpeg70.7 KB · Views: 215
-
WhatsApp Image 2020-07-28 at 00.59.56(2).jpeg86.6 KB · Views: 219
-
WhatsApp Image 2020-07-28 at 00.59.56(3).jpeg50.9 KB · Views: 219
-
WhatsApp Image 2020-07-28 at 01.02.41.jpeg250.9 KB · Views: 210
-
WhatsApp Image 2020-07-28 at 01.02.41(1).jpeg295.2 KB · Views: 240