Single click edittext

android, android-edittext

Solution

if we just add `android:focusableInTouchMode="false"` in edittext on layout page it should work in a singleclick on its onclicklistener. no need to handle onFocusChangeListener.

Problem

How can make an EditText have a onClick event so that on single click an action is done. ``` private void addListenerOnButton() { dateChanger = (EditText) findViewById(R.id.date_iWant); dateChanger.setOnClickListener(new OnClickListener() { public void onClick(View v) { showDialog(DATE_DIALOG_ID); } }); } ``` this is not working as excepted....single click gives just the onscreen keypad but not the datepicker dialog which appears only if i double click

Original source