if you cant see them in UIAutomatorView you cant do anything. as workaround, when we need to set something dynamic, we use content description. Which is visible and we can find it:
el.getAttribute("content-desc")
// or
@AndroidFindBy(uiAutomator = "new UiSelector().description(\"your_description\")")
private MobileElement someLabel;
// or
MobileElement el = driver.findElement(MobileBy.AndroidUIAutomator("new UiSelector().description(\"your_description\")"));