title: Can't edit an edittext in a popup window without dismissing and recalling it first
body: <p>I am using a popup window to display some information and have an edit button that allows that information to be changed.  I am loading all textviews, buttons and edittext fields and hiding/showing them as needed.  The edittext fields are not letting me edit them.  I have tried the below suggestion about setting focusable to true, but that isn't working.  Any other suggestions?</p>
  
  <p>Tried this: <a href="https://stackoverflow.com/questions/4134117/edittext-on-a-popup-window">EditText On A Popup Window</a></p>
  
  <p>EDIT:  Below is part of my code.  I've just included the parts for initializing the edittext and showing the popup contents since everything else is working, just not the edittext.  I am using a tablelayout, and when the user clicks a row, the popup window displays.  Keep in mind I'm still pretty new to Java and Android!</p>
  
  <p>EDIT #2:  The softkeyboard was not showing when the edittext was selected, but now it will show if I dismiss the popup once and then call it again.  I then tried forcing the softkeyboard to display, and it showed behind the popup (another problem).  I was able to select the number 1 since it was barely showing behind the popup window, but it didn't seem to work either.  The fix was the same here: dismiss the popup window and recall it.  <strong>So my remaining problem is being able to type into the edittext without having to dismiss the popup once and recall it.</strong>  As such, I am changing the title of this question.</p>
  
  <pre><code>row1.setOnClickListener(new OnClickListener() {
  
  @Override
  public void onClick(View v) {
  
      final EditText pwETBrand = (EditText) vPopUp.findViewById(R.id.et_editbrand);
  
      if (!infoClick) {
          infoClick = true;
  
          // Popup elements initialized earlier
          pwInfo.showAtLocation(llInfo, Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL, 0, 0);
          pwInfo.update(0, 0, llMain.getWidth()-50, llMain.getHeight()-100);
          pwInfo.setFocusable(true);
  </code></pre>
  
  <p>....</p>
  
  <pre><code>        // Hide some elements initially until "EDIT" button is pressed
          pwETBrand.setVisibility(View.INVISIBLE);
  </code></pre>
  
  <p>....</p>
  
  <pre><code>        // When EDIT button is pressed, hide default elements, and show edit elements
          pwEdit.setOnClickListener(new OnClickListener() {
              public void onClick(View v2) {
                  pwETBrand.setVisivility(View.VISIBLE);
                  // Other element settings go here
                  pwInfo.setFocusable(true);
              }
          )};
  </code></pre>
  
  <p>....</p>
  
  <pre><code>    }
  }
  </code></pre>