They allow you to define your layouts in Java code, however the prefered method is to use XML files which can be kind of hard to wrap your head around at first.
If you don't know Java, start there. Once you have a good foundation for the language, I'd suggest reading the developers guides provided by Google. After that begin looking at code samples and attempt to make some simple apps to demonstrate your understanding of how the APIs work.