[Android] Get full screen layout from uiautomator

We have a control in our app that is built outside (but technically inside) of a relative layout (out of bounds). It’s then made visible to the user through programmical means.
UiAutomator won’t show the contents of that control, probably because it’s out of bounds and uiautomator guesses it’s not visible to the user for that reason.

Is there a way to get the whole layout from an Android app with Appium? Even parts of the UI that the user currently can not see?