Code example for EditText

Methods: getTextsetSelection

		return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
				val, ctx.getResources().getDisplayMetrics());
	public static void putCursorAfterLastSymbol(EditText editText) {
	public static void showKeyboard(final View view) {
		new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
			public void run() { 
				setKeyboardVisible(view, true);
		}, 200); 
	public static void setKeyboardVisible(View view, boolean visible) {
		InputMethodManager imm = (InputMethodManager) view.getContext()
Connect your IDE to all the code out there  Get Codota for Java