Layout resource files
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