title: How to refresh view in android
body: <p>I have a layout which contains button and textView with visibility="gone". This layout is child of scrollView. When button has been pressed the textView visibility is set to "visible" but it overflows the screen (this is why it is in scrollView).</p>
  
  <p>My problem is that I'd like to automatically scroll to the end of the page. </p>
  
  <p>So I've tried:</p>
  
  <pre><code>mySchrollView.fullScroll(View.FOCUS_DOWN);
  </code></pre>
  
  <p>But unfortunately it doesn't work. It seems that layout will be updated after end of the onClick method (and indeed if I call this method again (new click) it is working). </p>
  
  <p>So I need to refresh the layout or screen before calling fullScroll(...); I tried refreshDrawableState() or forceLayout() but it haven't worked either.</p>
  
  <p>Do you have any idea how to solve it?</p>
  
  <p>Thanks a lot</p>