List of usage examples for android.view.inputmethod EditorInfo IME_NULL
int IME_NULL
To view the source code for android.view.inputmethod EditorInfo IME_NULL.
Click Source Link
From source file:com.wart.magister.LoginActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); setupActionBar();// w w w . j av a2 s .c o m // Set up the login form. this.setTitle(Data.getString(Data.LICENSE)); mUsernameView = (EditText) findViewById(R.id.username); mUsernameView.setText(mUsername); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); mLoginFormView = findViewById(R.id.login_form); mLoginStatusView = findViewById(R.id.login_status); mLoginStatusMessageView = (TextView) findViewById(R.id.login_status_message); findViewById(R.id.sign_in_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); }
From source file:com.netatmo.weatherstation.sample.LoginActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); setResult(RESULT_CANCELED);/*from ww w .j av a2 s.co m*/ mEmailView = (EditText) findViewById(R.id.email); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); mSignInButtonView = (Button) findViewById(R.id.sign_in_button); mSignInButtonView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); }
From source file:netatmowear.mugitek.com.netatmowear.LoginActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); setResult(RESULT_CANCELED);// w w w . ja v a 2 s . com mEmailView = (EditText) findViewById(R.id.email); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); mSignInButtonView = (Button) findViewById(R.id.sign_in_button); mSignInButtonView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); }
From source file:org.totschnig.myexpenses.dialog.EditTextDialog.java
@Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (EditorInfo.IME_ACTION_DONE == actionId || (actionId == EditorInfo.IME_NULL && event.getAction() == KeyEvent.ACTION_DOWN)) { // Return input text to activity EditTextDialogListener activity = (EditTextDialogListener) getActivity(); Bundle args = getArguments();//from ww w . j a v a2 s. c o m String result = mEditText.getText().toString(); if (result.equals("")) Toast.makeText(getActivity(), getString(R.string.no_title_given), Toast.LENGTH_LONG).show(); else { args.putString("result", result); activity.onFinishEditDialog(args); this.dismiss(); return true; } } return false; }
From source file:com.kytse.aria2remote.LoginFragment.java
@Override public void onResume() { super.onResume(); mEditTextUrl = (EditText) getActivity().findViewById(R.id.EditText_url); mEditTextSecret = (EditText) getActivity().findViewById(R.id.editText_password); mEditTextSecret.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override//from ww w. j a va 2 s . c o m public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); Button mEmailSignInButton = (Button) getActivity().findViewById(R.id.button_sign_in); mEmailSignInButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); mLoginFormView = getActivity().findViewById(R.id.login_form); mProgressView = getActivity().findViewById(R.id.login_progress); }
From source file:dev.drsoran.moloko.util.UIUtils.java
public final static boolean hasInputCommitted(int actionId) { return actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_ACTION_NEXT || actionId == EditorInfo.IME_NULL; }
From source file:mf.stickybit.android.trackergps.LoginActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); // setup interface mEmailView = (AutoCompleteTextView) findViewById(R.id.email); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override//from w w w .j a va2 s.c o m public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); mEmailSignInButton = (Button) findViewById(R.id.email_sign_in_button); mEmailSignInButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); mLoginFormView = findViewById(R.id.login_form); mProgressView = findViewById(R.id.login_progress); // cantidad de fails en 0 setCantidadFails(0); }
From source file:com.keysolutions.meteorparties.LoginActivity.java
/** * Handles creation of this activity//from ww w.j av a 2 s . c o m */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); // Set up the login form. mEmail = getIntent().getStringExtra(EXTRA_EMAIL); mEmailView = (EditText) findViewById(R.id.email); mEmailView.setText(mEmail); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(false); return true; } return false; } }); mLoginFormView = findViewById(R.id.login_form); mLoginStatusView = findViewById(R.id.login_status); mLoginStatusMessageView = (TextView) findViewById(R.id.login_status_message); findViewById(R.id.register_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(true); } }); findViewById(R.id.sign_in_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(false); } }); }
From source file:com.locution.hereyak.LoginActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences prefs = getSharedPreferences(Constants.PREFS_FILE_NAME, MODE_PRIVATE); if (prefs.getString("username", null) != null && prefs.getString("access_token", null) != null && prefs.getString("device_key", null) != null) { Intent i = new Intent(getApplicationContext(), MainActivity.class); i.putExtra("username", ObscureData.unObscureIt(this, prefs.getString("username", null))); i.putExtra("access_token", ObscureData.unObscureIt(this, prefs.getString("access_token", null))); i.putExtra("device_key", ObscureData.unObscureIt(this, prefs.getString("device_key", null))); startActivityForResult(i, 1);/*from w w w . j a v a 2 s . c om*/ setResult(RESULT_OK); finish(); } setContentView(R.layout.activity_login); // Set up the login form. //mEmail = getIntent().getStringExtra(); mEmailView = (EditText) findViewById(R.id.email); mEmailView.setText(mEmail); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); mLoginFormView = findViewById(R.id.login_form); mLoginStatusView = findViewById(R.id.login_status); mLoginStatusMessageView = (TextView) findViewById(R.id.login_status_message); findViewById(R.id.sign_in_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); findViewById(R.id.sign_up_text).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Constants.logMessage(1, "sign_up_text_onClick", "Switching to sign up activity"); Intent i = new Intent(getApplicationContext(), SignUpActivity.class); mEmail = mEmailView.getText().toString(); i.putExtra("email", mEmail); startActivityForResult(i, 1); } }); findViewById(R.id.forgot_password_text).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { lostPassword(); } }); }
From source file:fr.cph.stock.android.activity.LoginActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { Log.v(TAG, "LoginActivity onCreate"); super.onCreate(savedInstanceState); // Remove title bar //this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.login_activity); // Set up the login form. mLoginView = (EditText) findViewById(R.id.email); errorView = (TextView) findViewById(R.id.login_error); mPasswordView = (EditText) findViewById(R.id.password); mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override// w w w . j a v a 2 s. c om public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { if (id == R.id.login || id == EditorInfo.IME_NULL) { attemptLogin(); return true; } return false; } }); checkBox = (CheckBox) findViewById(R.id.checkbox); mLoginFormView = findViewById(R.id.login_form); mLoginStatusView = findViewById(R.id.login_status); mLoginStatusMessageView = (TextView) findViewById(R.id.login_status_message); findViewById(R.id.sign_in_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { attemptLogin(); } }); EasyTracker.getInstance().setContext(this); }