Design

This section covers how to customize the SDK look to match your app's design.

Color Theme

The SDK UI has 2 color themes: light and dark.

You can set which theme to use by adding the following method to Instabug builder.

Instabug.setColorTheme(InstabugColorTheme.InstabugColorThemeLight);

Primary Color

You can also set the color of UI elements indicating interactivity or call to action to match your app.

Instabug.setPrimaryColor(Color.BLUE);

Floating Button

If you set the invocation event to be through the floating button, you have the option to set its position. The setFloatingButtonEdge specifies if the button should appear on the left or right side of the screen. The setFloatingButtonOffsetFromTop specifies its position on the y-axis.

BugReporting.setFloatingButtonEdge(InstabugFloatingButtonEdge.RIGHT);
BugReporting.setFloatingButtonOffset(50);

Video Recording Button

If the video recording attachment type is enabled, you can change the position of the red recording button displayed in the screenshot below. The default position of the button is bottom right.

BugReporting.videoRecordingFloatingButtonPosition = InstabugVideoRecordingButtonCorner.BOTTOM_LEFT