title: 2D Scrolling, supporting RTL layout
body: <p>Recently, we have started adding support for Arabic - which needs RTL layouts. One of our screens uses a 2D scroller, which I found here: </p>
  
  <p><a href="https://github.com/mukulraw/rekhta/blob/master/app/src/main/java/com/example/mukul/rekhta/TwoDScrollView.java" rel="nofollow noreferrer">https://github.com/mukulraw/rekhta/blob/master/app/src/main/java/com/example/mukul/rekhta/TwoDScrollView.java</a></p>
  
  <p>But, when we switch to RTL there are two problems: </p>
  
  <ul>
  <li>The <code>childview</code> is cut off</li>
  <li>Initially doesn't want to scroll to the left, but allows scrolling to the right (away from the child view). </li>
  </ul>
  
  <p>I've tried looking at the source code for Horizontal <code>scrollview</code> - which handles rtl correctly. So far, I only saw two references to rtl in the code: during <code>onLayout()</code>. When I try something similar though, my child view just disappears. </p>
  
  <p>So far I could find no other solutions supporting both 2d scrolling and rtl. So, I'm hoping to resolve it here for me and for some future soul that needs something similar.</p>