Saturday, 15 June 2013

Design suggestion: How to add programmatically add multiple (but indeterminate) 'Views' of the same class in an Android Activity -


I have this problem that I can not solve.

One of the activities of my Android app

  • A name
  • Zero or more items described by name, price, and other information
  • A name
  • I have tried to implement the functions related to 'item' in a format . I used to understand a piece because I could add some logic (different probes on values) in pieces and it is a light activity.

  • Edit text for details
  • An image view to add pieces '+'
  • LinearLayout Hoarding Launcher
  • I can not use the pieces because they are not placed during the device rotation (I tried to restore it linear Ideas in the layout, with the same ID, but it does not work).

    How can I implement such a functionality? I could not find any examples.


    No comments:

    Post a Comment