-1

enter image description here

I am new for creating android dynamic views

i am having Root linear layout i need to add,delete views as showed image to the root layout in every view consist of two edittext,two buttons

how create,get each view uniquely in all the views

Can any one guide me,your response will be appreciated....

Nageswara Rao.CH
  • 241
  • 1
  • 2
  • 13
  • You can create the complete layout before hand and set the visibility to gone or invisible. When pressing buttons set the visibility to visible again – Ahmed Abidi Nov 22 '16 at 13:40

1 Answers1

0

use recyclerview , make a list and an adapter , onclick add another item to the list.

onclick on delete remove that specific item from the adapter.

https://stackoverflow.com/a/26310638/7079340

this link will help you a lot in your mission much luck

Community
  • 1
  • 1
yanivtwin
  • 617
  • 8
  • 32