Hi,
I am trying not get the default longclick menu (input method selections etc) when longclicking an edittext The menu still appears after I displayed by date and timepicker dialogs. I am not sure what I am doing wrong here. private View.OnLongClickListener MyLongClickListener = new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { if (v.getId() == R.id.textviewDayStart){ v.cancelLongPress(); mSettingStartDate = true; showDialog(DATE_DIALOG); } if (v.getId() == R.id.textviewDayFinish){ mSettingStartDate = false; v.cancelLongPress(); showDialog(DATE_DIALOG); } if (v.getId() == R.id.textviewTimeStart){ mSettingStartDate = true; v.cancelLongPress(); showDialog(TIME_DIALOG); } if (v.getId() == R.id.textviewTimeFinish){ mSettingStartDate = false; v.cancelLongPress(); showDialog(TIME_DIALOG); } return false; } }; -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en