title: Android Soft Keyboard: How to manipulate views on keyboard on/off
body: <p>I have a layout which has one large EditText view at the top + a bunch of buttons at the bottom. The EditText is made to shrink and expand when the ime is activated/deactivated by using adjust_resize. The buttons at the bottom are pushed up above the ime.</p>
  
  <p>I would like to hide these buttons when the ime displays, to provide enough space for the EditText view.</p>
  
  <p>I have so far tried the following:</p>
  
  <ul>
  <li><p>subclassed EditText and provided the activity the option to register a callback on the view's OnSizeChanged.</p></li>
  <li><p>Used this callback to change the visibility of the buttons (actually the layout container) to GONE.</p></li>
  </ul>
  
  <p>This work OK and does hide the buttons when the ime pops up.
  However, the EditText does not expand into the new available space.
  Furthermore, when the ime is disposed off, the EditText field is now bigger than it was originally, pushing (the now showing) buttons outside the screen.</p>
  
  <p>I should also add that when typing the first letter into the view, and the ime displays the word options, the screen is redrawn and the EditText fills the vacant space.</p>
  
  <p>Any ideas on how to get this to work?
  Or even better, is there a simpler solution to my requirement?</p>
  
  <p>Thanks...</p>
  
  <p>NB:  In my view, scrolling  is not a good option.</p>