How I can use EditText instead of TextView and open the datePicker in a single click?
put
android:focusable="false"
android:focusableInTouchMode="false"
in your edit text
UPDATE
add
android:longClickable="false"
You can use EditText to achieve your requirement. Firstly Do like this
EditText edTxt;
edTxt = (TextView) row.findViewById(R.id.acti_edtTxt_date);
Also you can do it from code to hide editable like this
edTxt.setClickable(false);
Now Apply OnClickListener on this edTxt and open DatePicker or what you want.
Please note that setClickable = "false " in your xml file where you are defining your EditText
<EditText ...
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false">
You can achieve it by making it focusable false
.
<EditText ...
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false">