Customizing UI
NOTE: If you want to use your own fully custom UI, you must disable the default UI, as it is on by default.
Customize the Default User Interface
You can modify the color, interface text, and images provided in the default interface. You can also choose to implement your own interface.
-
To set various colors used by the default UI, add them to your res/values/colors.xml file.
-
To modify the UI text, update your application’s res/values/strings.xml file.
-
To customize images, include resources with the same name within the res/drawable folder.
-
To set the terms URL, use this method:
Visitor.defaultUI(boolean enabled, String termsUrl)
. Alternatively contact your Glance representative to set the terms URL.
- To implement your own UI use:
Visitor.defaultUI(false); Visitor.setCustomSessionViewId(R.id.my_glance_agent_viewer);
.
Your custom view will most likely override onSizeChanged and [dispatchDraw] (https://developer.android.com/reference/android/view/ViewGroup.html#dispatchDraw(android.graphics.Canvas)).
Default User Interface Details
Dialog Colors

Session Key Colors

Agent Viewer Colors

End Button Colors
