I\'m trying to get an add button to add another button to the layout, based on the edittext to the left of the button. The point is for a person to list the rooms in their
Each button needs to have an onclicklistener to tell it what to do. this can be added to your java code under where you state your button.
Button createdButton = new Button(this); createdButton.setOnClickListener(new OnClickListener() { code you want implemented }