Monday, August 26, 2013

Layout resource files

Activities and layouts

Android activities define their user interface with views (widgets) and fragments. This user interface can be defined via XML layouts resource files in the /res/layout folder or via Java code. You can also mix both approaches.

Defining layouts via XML layout files is usually the preferred way as this separates the programming logic from the layout definition. It also allows the definition of different layouts for different devices.

No comments:

Post a Comment