title: How to scroll down to click the element in Android using appium and java?
body: <p>I would like to know how to scroll down to click the element in Android using appium and java?</p>
  
  <p>I am having a list of elements inside "<code>android.support.v7.widget.RecyclerView</code>". Since it has more than 10 elements, we need to swipe the screen to see the below elements. 
  Each element has same id which is "<code>com.osanda.exampleapp/textViewTitle</code>". But their texts are different like "Apple", "Orange", "Grapes"......</p>
  
  <p>All I need is to scroll and click the relevant element using its text("Apple", "Orange", "Grapes".....)</p>
  
  <p>I have followed many tutorials but couldn't do it properly. I have managed to scroll down the screen. But it won't work when the element is in the middle position of the scroll.</p>
  
  <p>When I listed the element names it only shows the visible elements, not all elements.</p>
  
  <pre><code>List&lt;WebElement&gt; elements = androidDriver.findElementByClassName("android.support.v7.widget.RecyclerView").findElements(By.id("com.osanda.exampleapp:id/textViewTitle"));
          for(WebElement element : elements) {
              System.out.println(element.getText());
          }
  </code></pre>
  
  <p>Thank You.</p>