How to scroll up for specific text in android

hi the following method working fine for scrolling down:

String selector = “searchString”;
driver.findElement(MobileBy.AndroidUIAutomator(“new UiScrollable(new UiSelector()).scrollIntoView(new UiSelector().text(”"+selector+""));"));

but i want to scroll up ,can anyone describe me how to do it .thanks a lot
maybe try scrollToBeginning before starting scroll to needed item?

Привет. Спасибо большое за ответ.

scrollToBeginning - ето что то встроенное в аппиум?

  1. scrollToBeginning see description (this is native UIAutomator command) ->
  2. how to use see in “Android ‘UIScrollable’ swipe: Tricks and Tips” link