I'm thinking of making a small android game like Mole Catch but if i want the mole to jump around randomly on the screen as a button i would need to make the button change location in the java code and not in the XML and im not realy sure how i would change this location.. Like if i create the button in xml and then the buttons position will still be set in the xml file not in java.
So is there some way i can instead of setting position of button in XML then set the position in Java for this kind of game / application?