• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Getting attributes from programatically added Views

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)?
 

Attachments

  • WhatsApp Image 2020-07-28 at 00.59.56.jpeg
    WhatsApp Image 2020-07-28 at 00.59.56.jpeg
    39.8 KB · Views: 233
  • WhatsApp Image 2020-07-28 at 00.59.56(1).jpeg
    WhatsApp Image 2020-07-28 at 00.59.56(1).jpeg
    70.7 KB · Views: 215
  • WhatsApp Image 2020-07-28 at 00.59.56(2).jpeg
    WhatsApp Image 2020-07-28 at 00.59.56(2).jpeg
    86.6 KB · Views: 219
  • WhatsApp Image 2020-07-28 at 00.59.56(3).jpeg
    WhatsApp Image 2020-07-28 at 00.59.56(3).jpeg
    50.9 KB · Views: 219
  • WhatsApp Image 2020-07-28 at 01.02.41.jpeg
    WhatsApp Image 2020-07-28 at 01.02.41.jpeg
    250.9 KB · Views: 210
  • WhatsApp Image 2020-07-28 at 01.02.41(1).jpeg
    WhatsApp Image 2020-07-28 at 01.02.41(1).jpeg
    295.2 KB · Views: 240
Back
Top Bottom