tencent cloud

Tencent Cloud Super App as a Service

Web-View Component Progress Bar

Download
Focus Mode
Font Size
Last updated: 2025-07-04 17:33:27
When loading a page, the web-view component displays a progress bar by default.



The SDK provides customization options for this progress bar.

Hide the web-view component progress bar

To control whether to hide the progress bar, override the hideWebViewProgressBar method in the AbsMiniUiProxy class:
/**
* Whether to hide the web-view component progress bar
* @return true: hide; false: do not hide (default value)
*/
boolean hideWebViewProgressBar();

Set the color of the web-view component progress bar

To control the color of the progress bar, override the webviewProgressBarColor and webviewProgressBarBgColor methods in the AbsMiniUiProxy class:
/**
* Sets the color of the progress bar (color of the completed progress). Returns null to use the default value.
* @return Progress bar color value, e.g., Color.GREEN
*/
Integer webviewProgressBarColor();

/**
* Sets the background color of the web-view component progress bar (color for incomplete progress). Returns null to use the default value. This takes effect when webviewProgressBarColor returns a non-null value.
* @return Progress bar background color value, e.g., Color.GREEN
*/
Integer webviewProgressBarBgColor();



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback