May 2022
Intermediate to advanced
688 pages
20h 12m
English
One of the core considerations around device configuration is the desire to provide appropriate resources based on the configuration. When the user’s language is German, your Activity should display German text. When the user enables night mode, your color scheme should adjust to be easier on the eyes.
You enable this functionality by providing configuration-specific resources in your app. Another configuration-specific attribute you can provide different resources for is the orientation of the device’s screen: You can create a landscape-only layout so that when the user rotates their device to landscape, they see a layout specifically designed for landscape screens. For example, you ...
Read now
Unlock full access