I want to use the same xml file for displaying depending upon which button was clicked in the previous page. There is an xml template and depending upon the user's input the output will be shown.
Let's say there are 5 buttons and the layout of the output will be same for all but there will be difference in output data.
- How can I get the id of the clicked button in the java file?
- Can I use ImageView instead of buttons for the same purpose?
Thanks in advance!