Working with Layouts
by, 02-11-2012 at 01:00 PM (703 Views)
XML files that are called “layouts” are used to define Android application user interface screens. The XML files are a special type of resource and treated as a resource. These XML files are used to describe screen layout like how this screen will look like. This layout resource can be considered as a template. A layout resource is filled with different supported view controls which may refer to other resources like colors, strings, drawables and dimensions.
These XML resources are compiled into application’s package as layouts. Also can be created at runtime using XML layout classes in Java from Activity class. These XML layout resource files improve following:
• Reusability of code
• Flexibility of application