When a form has 2 segments in it , if we set the data dynamically the ui rendering is not accurate . seeking support to resolve the issue

A flexcontainer of a form has 2 segments along with some other widgets. The data for those segments is dynamic and need to implement .setdata methods for both segments. while implementing 2 .setdata methods one after the other , for couple of seconds the ui looks bad (not refreshing properly).Have been facing this issue on Mobile (Android) Application.

Requesting support to resolve this issue.