Scroll to element in Android

HI Aleksei,

I am trying to scroll the native app which has the form.

Following code i tried but not able to scroll.

driver.findElement(AppiumBy.androidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(text("PIN Code “).instance(0));”));

Getting error like : Unable to locate the element.

How i can scroll the page.

Correct code to: scrollIntoView(new UiSelector().text(“PIN Code”))");

@Aleksei please help me on how to scroll the Android page vertically upward by using UI scrollable and UI Selector

same → UiScrollable  |  Android Developers
setAsVerticalList() and possibly scrollBackward()