ログイン画面で、メールアドレスとパスワードを入力した後、ソフトキーボードを押すと、ログイン画面の下部がしばらく黒くなります。スクリーンショットを添付します。見てください。
public void loginButtonClickListener(final View view) {
emailTextBox = (EditText) findViewById(R.id.emailLogin);
passwordTextBox = (EditText) findViewById(R.id.passwordLogin);
emailText = emailTextBox.getText().toString().trim();
SharedPreferences settings = getSharedPreferences("Lisnx", 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("useremail", emailText);
editor.commit();
passwordText = passwordTextBox.getText().toString();
if (emailText == null || emailText.length() == 0) {
CustomToast.showCustomToast(this,
Constants.USER_EMAIL_FIELD_EMPTY_ERROR,
Constants.TOAST_VISIBLE_SHORT, layoutInflater);
emailTextBox.requestFocus();
return;
} else if (passwordText == null || passwordText.length() == 0) {
CustomToast.showCustomToast(this,
Constants.PASSWORD_FIELD_EMPTY_ERROR,
Constants.TOAST_VISIBLE_SHORT, layoutInflater);
passwordTextBox.requestFocus();
return;
}
try {
InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(this.getCurrentFocus()
.getWindowToken(), 0);
} catch (Exception e) {
}
pd = ProgressDialog.show(this, null,
this.getResources().getString(R.string.authenticateUser), true);
authenticateUser(view);
}