Android button id
<p>If I have created a button in xml and i want to use this button multiple times but give them unique id's, how do i do that? I don't know how many buttons i will have, so i can't create a number of buttons in my xml-file. I want to be able to change the buttons id while running the program. I've tried to do button.setId() but then everything breaks and wont work. </p>
