I’m teaching a few colleagues Java with the intent to go into Android game programming. Is there a way to display a box on the screen, and when you touch it it changes colors, without creating an Activity (this is in Eclipse) and diving into the ugly world of XML?
Share
Here is an example for programmatically creating UI in Android as you requested
However, I strongly encourage using XML for your layouts. It is much easier and quicker to use XML once your understand it, so here is a tutorial for you.