Device configuration specific layouts
The
user interface for activities is typically defined via XML files
(layout files). It is possible to define layout files for different
device configuration, e.g. based on the available width of the actual
device running the application.
Fragments are designed to support such a setup.
The following picture shows an activity called MainActivity.
On a smaller screen it shows only one fragment and allows that the user
navigates to another fragment. On a wide screen it shows two fragments.
No comments:
Post a Comment