--- title: "Layout" slug: "mas-4x-cg-configure-layout-4-30-10" updated: 2025-10-27T14:57:56Z published: 2025-10-27T14:57:56Z canonical: "docs.onespan.com/mas-4x-cg-configure-layout-4-30-10" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Layout 1. 2. 3. 4. 5. 6. 7. 8. ## Configuring the background - Layout: This element is used to customize the layout of the application. > OneSpan recommends using the logo or stretch mode – these two modes are better adapted to be used with recent mobile devices than the wallpaper mode. > In [Background configuration - resize mode logo](/mobile/docs/mas-4x-cg-configure-layout-4-30-10#FIG_Config_Background_Reside_Mode_Logo), backgroundColorInLogoResizeMode is D2DCBC. - backgroundResizeMode: This attribute defines how the background is resized. - backgroundResizeMode="logo": The background is scaled along the shorter side of the screen. The background image must be square. The aspect ratio is preserved. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/image(84).png?sv=2026-02-06&spr=https&st=2026-12-05T02%3A52%3A07Z&se=2026-12-05T03%3A52%3A07Z&sr=b&sp=r&sig=P%2FbILg85RbXHC4yr6PVc7aGekbIgJ9JjB9cg2YK9Z%2BQ%3D) Background configuration - resize mode logo - navigationButtonColor: Color of the navigation button. - backgroundResizeMode="stretch": The background is scaled to fill the screen. The aspect ratio is not preserved. This is the default background resize mode. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/image(85).png?sv=2026-02-06&spr=https&st=2026-12-05T02%3A52%3A07Z&se=2026-12-05T03%3A52%3A07Z&sr=b&sp=r&sig=ukW9DntQByuTlDJgEBxhFu5avbCh74qrjUjv3m5RmZM%3D) Background configuration - resize mode stretch - backgroundResizeMode="wallpaper": The background is scaled along the larger side of the screen. The background image must be square. The aspect ratio is preserved. ![](https://cdn.document360.io/038f59a7-abd0-4c14-9de7-3434d28b49fd/Images/Documentation/image(86).png?sv=2026-02-06&spr=https&st=2026-12-05T02%3A52%3A07Z&se=2026-12-05T03%3A52%3A07Z&sr=b&sp=r&sig=SOO8rXRKDT4C08ejz%2FzZrMCnt0blYCcG9SZa7ObZRFM%3D) Background configuration - resize mode wallpaper - backgroundColorInLogoResizeMode: If backgroundResizeMode is logo, this attribute defines the background color of those parts of the screen that will not be covered by the background. This attribute is optional. The default value is FFFFFF.