List of usage examples for android.text InputType TYPE_TEXT_VARIATION_WEB_EDIT_TEXT
int TYPE_TEXT_VARIATION_WEB_EDIT_TEXT
To view the source code for android.text InputType TYPE_TEXT_VARIATION_WEB_EDIT_TEXT.
Click Source Link
From source file:Main.java
private static boolean isWebEditTextInputType(int inputType) { return inputType == (InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT); }
From source file:com.github.irshulx.Components.InputExtensions.java
public void insertLink() { final AlertDialog.Builder inputAlert = new AlertDialog.Builder(this.editorCore.getContext()); inputAlert.setTitle("Add a Link"); final EditText userInput = new EditText(this.editorCore.getContext()); //dont forget to add some margins on the left and right to match the title userInput.setHint("type the URL here"); userInput.setInputType(InputType.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT); inputAlert.setView(userInput);// www. j a v a 2 s. c om inputAlert.setPositiveButton("Insert", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { String userInputValue = userInput.getText().toString(); insertLink(userInputValue); } }); inputAlert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); AlertDialog alertDialog = inputAlert.create(); alertDialog.show(); }