List of usage examples for android.view.inputmethod InputMethodManager SHOW_IMPLICIT
int SHOW_IMPLICIT
To view the source code for android.view.inputmethod InputMethodManager SHOW_IMPLICIT.
Click Source Link
From source file:org.xwalk.core.xwview.shell.XWalkViewShellActivity.java
private void setKeyboardVisibilityForUrl(boolean visible) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); if (visible) { imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); } else {/*w ww . jav a 2s. c o m*/ imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); } }
From source file:app.CT.BTCCalculator.fragments.BreakevenFragment.java
public void showSoftKeyboard(View view) { if (view.requestFocus()) { InputMethodManager imm = (InputMethodManager) getActivity() .getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); }/*from w w w .j a v a 2 s . c o m*/ }
From source file:ee.ria.DigiDoc.fragment.ContainerDetailsFragment.java
@OnClick({ R.id.docName, R.id.editBdoc }) public void onChangeContainerName() { saveButton.setVisibility(View.VISIBLE); title.setCursorVisible(true);//w w w . ja v a 2 s . c om title.setInputType(EditorInfo.TYPE_CLASS_TEXT); InputMethodManager input = (InputMethodManager) getActivity() .getSystemService(Activity.INPUT_METHOD_SERVICE); input.showSoftInput(title, InputMethodManager.SHOW_IMPLICIT); }
From source file:com.microsoft.assetmanagement.DisplayCarActivity.java
/** * Hide soft pad.//from w ww. ja va2 s. co m */ private void hideSoftPad() { ((InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE)) .toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0); }
From source file:com.oldster.swiftmovedriver.fragment.EditCarFragment.java
private void requestFocus(View view) { if (view.requestFocus()) { InputMethodManager imm = (InputMethodManager) getActivity() .getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); }// w ww .j a va 2 s . co m }
From source file:com.mobicage.rogerthat.util.ui.UIUtils.java
public static void showKeyboard(Context context) { if (hasHardKeyboard(context)) return;//from w w w . ja v a 2 s . c o m InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); if (imm == null) L.d("No input method manager"); else imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0); }
From source file:com.barbrdo.app.activities.UserProfileActivity.java
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed();//w w w . java 2s . com return true; case R.id.action_edit: if (isEdit) { updateAccount(); } else { isEdit = true; invalidateOptionsMenu(); editTextFirstName.requestFocus(); editTextPhone.setEnabled(true); editTextFirstName.setEnabled(true); editTextLastName.setEnabled(true); editTextPassword.setEnabled(true); editTextConfirmPassword.setEnabled(true); editTextBio.setEnabled(true); textViewSearchRadius.setEnabled(true); if (user.userType.equalsIgnoreCase(getString(R.string.barber_))) textViewMemberSince.setEnabled(true); InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(editTextFirstName, InputMethodManager.SHOW_IMPLICIT); getView(R.id.cv_password_change).setVisibility(View.VISIBLE); } return true; } return super.onOptionsItemSelected(item); }
From source file:com.frostwire.android.gui.util.UIUtils.java
public static void showKeyboard(Context context, View view) { view.requestFocus();// w ww . java 2 s . c o m InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); if (imm != null) { imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); } }
From source file:com.orange.ocara.ui.activity.BaseActivity.java
public static void showKeyboard(Context context) { InputMethodManager service = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); service.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.SHOW_IMPLICIT); }
From source file:com.granita.tasks.EditTaskFragment.java
private void updateView() { /*//from w w w . j ava2 s .c om * If the model loads very slowly then this function may be called after onDetach. In this case check if Activity is <code>null</code> and return if * <code>true</code>. Also return if we don't have values or the values are still loading. */ Activity activity = getActivity(); if (activity == null || mValues == null || mValues.isLoading()) { return; } final LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (mEditor != null) { // remove values, to ensure all listeners get released mEditor.setValues(null); } mContent.removeAllViews(); mEditor = (TaskEdit) inflater.inflate(R.layout.task_edit, mContent, false); mEditor.setModel(mModel); mEditor.setValues(mValues); mContent.addView(mEditor); // update focus to title String title = mValues.getAsString(Tasks.TITLE); // set focus to first element of the editor if (mEditor != null) { mEditor.requestFocus(); if (title == null || title.length() == 0) { // open soft input as there is no title InputMethodManager imm = (InputMethodManager) this.getActivity() .getSystemService(Context.INPUT_METHOD_SERVICE); if (imm != null) { imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0); } } } updateColor((float) mRootView.getScrollY() / mTaskListBar.getMeasuredHeight()); }