I’m learning about Android development, and I read that if you want to create an interface you need to use an XML file.
However, Android has classes in android.views and android.widgets. Can I create the same interface programmatically? I don’t want to know how, only if I can.
Almost all you can do by xml you can reproduce it programmatically.
This is the best resource you can read:
http://developer.android.com/guide/topics/ui/declaring-layout.html