title: android, how to set dynamically button and edit text
body: <p><a href="https://i.stack.imgur.com/AG1lp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AG1lp.jpg" alt="enter image description here" /></a></p>
  <p>in my android project ,as show in picture, how to event click on every added button.
  on click button add new view, on same as new view add same.
  this is how i add new views..</p>
  <pre><code> if(myLayout.getParent() != null) {
                                      ((ViewGroup)myLayout.getParent()).removeView(myLayout);
                                  }
                                  final EditText editTextWayPoints = (EditText) myLayout.findViewById(R.id.add_item_name);
                                  final ImageButton btnone = (ImageButton) myLayout.findViewById(R.id.add_btn);
                                  btnone.setOnClickListener(new View.OnClickListener() {
                                      @Override
                                      public void onClick(View view) {
                                          Toast.makeText(AddRecipeActivity.this, editTextWayPoints.getText().toString(), Toast.LENGTH_SHORT).show();
                                      }
                                  });
                                  binding.linlay1.addView(myLayout);
  </code></pre>
  <p>now i want button click on every new views.</p>