title: Android imeOptions="actionDone" not working
body: <p>I am trying to get a login screen for an Android app and so far this is my code:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
  
      &lt;LinearLayout
          android:id="@+id/linearLayout1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerInParent="true"
          android:orientation="vertical"&gt;
  
          &lt;EditText
              android:id="@+id/username"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:hint="Username"
              android:inputType="text"
              android:singleLine="true"
              android:imeOptions="actionNext"&gt;
  
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
  
          &lt;EditText
              android:id="@+id/password"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:hint="Password"
              android:inputType="textPassword"
              android:singleLine="true"
              android:imeOptions="actionDone"  /&gt;
  
          &lt;Button
              android:id="@+id/buttonLaunchTriage"
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1"
              android:text="@string/login" /&gt;
      &lt;/LinearLayout&gt;
  
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>When I try to run it, the keyboard shows the right keys but when I try to press done after entering the password, nothing happens. I am using this to handle the button press:</p>
  
  <pre><code>private void setupLoginButton() {
      Button launchButton = (Button) findViewById(R.id.buttonLaunchTriage);
      launchButton.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              EditText username = (EditText) findViewById(R.id.patient_start_userName_value);
              EditText password = (EditText) findViewById(R.id.patient_start_password_value);
  
              try {
                  if(TriageApplicationMain.validateUser(username.getText().toString(),password.getText().toString(),getApplicationContext()))
                  {
                  Toast.makeText(StartActivity.this,
                          "Launching Triage Application", Toast.LENGTH_SHORT)
                          .show();
                  startActivity(new Intent(StartActivity.this, MainActivity.class));
                  }
  
                  else
                       {
                      AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
                              StartActivity.this);
  
  
                          // set dialog message
                          alertDialogBuilder
                              .setMessage("Incorrect Credentials")
                              .setCancelable(false)
                              .setPositiveButton("OK",new DialogInterface.OnClickListener() {
                                  public void onClick(DialogInterface dialog,int id) {
                                      // if this button is clicked, close
                                      // current activity
                                  dialog.cancel();    
                                  }
                                });
  
  
                              // create alert dialog
                              AlertDialog alertDialog = alertDialogBuilder.create();
  
                              // show it
                              alertDialog.show();
  
                      }
                  }
  
  
              catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
          }
      });
  
  }
  </code></pre>
  
  <p>I know this is a lot of code, but if anyone could help me here it would be great. This is for a school project. </p>
  
  <p>PS: I have searched through Google for a solid hour before posting this so please don't criticize for not doing that. If you find a link that is useful then please share. </p>