in most cases:
String text = "your_text";
driver.findElement(MobileBy
.AndroidUIAutomator("new UiScrollable(new UiSelector()).scrollIntoView("
+ "new UiSelector().text(\""+text+"\"));"))
sometimes you need to specify “new UiScrollable(new UiSelector())” like e.g. by id:
driver.findElement(MobileBy
.AndroidUIAutomator("new UiScrollable(new UiSelector().resourceIdMatches(".*id/your_scrolling_container_id")).scrollIntoView("
+ "new UiSelector().text(\""+text+"\"));"))