title: How to maintain the scrolling state while orientation change in android
body: <p>I have created one custom view that contains the horizontalscrollview. Now when i changes the orientation its scroll state change to 0 every time.</p>
  
  <p>I got the previous scroll state by using <code>onSaveInstanceState(Bundle savedInstanceState)</code> and <code>onRestoreInstanceState(Bundle savedInstanceState)</code> . in <code>onRestoreInstanceState</code> i am using following method to get reposition the scroll,</p>
  
  <pre><code>hoz_scroll.scrollTo(hoz_x_pos, hoz_scroll.getScrollY());
  </code></pre>
  
  <p>But there is not effect at all. 
  Help appreciated.  Thanks.</p>