The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
Developer Settings on Glass
Stay organized with collections
Save and categorize content based on your preferences.

If you have debug turned on from the Device info card in the settings menu,
the Developer settings card will be visible next to it. You can access the
the following advanced developer settings from this card.
Keep the screen on while charging

When you turn this setting on, the screen will dim but not turn completely off
while Glass is charging via USB or AC power.
Show layout bounds and margins

When you turn this setting on, the system will outline the bounds and color in
the margins of the views on the screen.
Show GPU overdraw

When you turn this setting on, the system will color in each pixel on the screen
depending on how many times it was drawn in the last paint cycle. This setting
helps you debug performance issues with deeply nested layouts or complex paint
logic.
- Pixels drawn in their original color were only drawn once.
- Pixels shaded in blue were drawn twice.
- Pixels shaded in green were drawn three times.
- Pixels shaded in light red were drawn four times.
- Pixels shaded in dark red were drawn five or more times.
Animation time scale factor

Use this setting to speed up or slow down system animations and transitions.
Layout screen overlay

Use this setting to display an overlay on the screen that shows the bounds and
margins of the standard UI layouts used by the
CardBuilder
class. You should use those built-in layouts whenever possible, but this setting
helps you line up any custom layouts you might need to create with our preferred
design guidelines.
Direct access through ADB
You can also modify these settings from the command line by sending a broadcast
through ADB.
$ adb shell am broadcast \
-a com.google.android.glass.settings.CHANGE_DEVELOPER_SETTING \
-e setting <setting name> \
<value argument>
Setting name |
Value argument |
Description |
keep_screen_on |
--ez value [true|false] |
Turns the "Keep screen on while charging" setting on or off. |
show_layout_bounds |
--ez value [true|false] |
Turns the "Show layout bounds and margins" setting on or off. |
show_gpu_overdraw |
--ez value [true|false] |
Turns the "Show GPU overdraw" setting on or off. |
animation_time_scale |
--ef value [0.5|1.0|1.5|2.0|5.0|10.0] |
Modifies the "Animation time scale factor" setting. If you pass in a
value other than one listed to the left, the closest match will be used.
|
layout_overlay |
-e value [text|columns|caption| author|title|menu|alert|off] |
Modifies the "Layout screen overlay" setting. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eAccess advanced developer settings, like "Keep screen on while charging" and "Show layout bounds", from the Developer settings card in the settings menu.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the "Show GPU overdraw" setting to identify and debug performance bottlenecks related to complex layouts or paint logic.\u003c/p\u003e\n"],["\u003cp\u003eAdjust the "Animation time scale factor" to control the speed of system animations for testing and debugging purposes.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can modify these settings directly through ADB commands for a more streamlined workflow.\u003c/p\u003e\n"],["\u003cp\u003eLeverage the "Layout screen overlay" to align custom layouts with Google's recommended design guidelines for Glass.\u003c/p\u003e\n"]]],[],null,["# Developer Settings on Glass\n\nAccessing from the settings menu\n--------------------------------\n\nIf you have debug turned on from the **Device info** card in the settings menu,\nthe **Developer settings** card will be visible next to it. You can access the\nthe following advanced developer settings from this card.\n\n### Keep the screen on while charging\n\nWhen you turn this setting on, the screen will dim but not turn completely off\nwhile Glass is charging via USB or AC power.\n\n### Show layout bounds and margins\n\nWhen you turn this setting on, the system will outline the bounds and color in\nthe margins of the views on the screen.\n\n### Show GPU overdraw\n\nWhen you turn this setting on, the system will color in each pixel on the screen\ndepending on how many times it was drawn in the last paint cycle. This setting\nhelps you debug performance issues with deeply nested layouts or complex paint\nlogic.\n\n- Pixels drawn in their original color were only drawn once.\n- Pixels shaded in **blue** were drawn twice.\n- Pixels shaded in **green** were drawn three times.\n- Pixels shaded in **light red** were drawn four times.\n- Pixels shaded in **dark red** were drawn five or more times.\n\n### Animation time scale factor\n\nUse this setting to speed up or slow down system animations and transitions.\n\n### Layout screen overlay\n\nUse this setting to display an overlay on the screen that shows the bounds and\nmargins of the standard UI layouts used by the\n[`CardBuilder`](https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/widget/CardBuilder)\nclass. You should use those built-in layouts whenever possible, but this setting\nhelps you line up any custom layouts you might need to create with our preferred\n[design guidelines](/glass/design/style).\n\nDirect access through ADB\n-------------------------\n\nYou can also modify these settings from the command line by sending a broadcast\nthrough ADB. \n\n $ adb shell am broadcast \\\n -a com.google.android.glass.settings.CHANGE_DEVELOPER_SETTING \\\n -e setting \u003csetting name\u003e \\\n \u003cvalue argument\u003e\n\n| Setting name | Value argument | Description |\n|------------------------|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `keep_screen_on` | `--ez value [true|false]` | Turns the \"Keep screen on while charging\" setting on or off. |\n| `show_layout_bounds` | `--ez value [true|false]` | Turns the \"Show layout bounds and margins\" setting on or off. |\n| `show_gpu_overdraw` | `--ez value [true|false]` | Turns the \"Show GPU overdraw\" setting on or off. |\n| `animation_time_scale` | `--ef value [0.5|1.0|1.5|2.0|5.0|10.0]` | Modifies the \"Animation time scale factor\" setting. If you pass in a value other than one listed to the left, the closest match will be used. |\n| `layout_overlay` | `-e value [text|columns|caption| author|title|menu|alert|off]` | Modifies the \"Layout screen overlay\" setting. |"]]