Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

edittext setOnclicklistener android

I have a listview , and edittext on top of it. The edittext is searching data from listview. Listview is populated from string-array. The edittext search function is working fine, but onclick is not working. It should go to another activity passing some intents. How can I do that? I am using this method.IS it correct ? How to pass the intents?

  editText.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {


        }
    });

Thanks

like image 752
sarah Avatar asked Dec 05 '22 20:12

sarah


1 Answers

If you set the android:focusableInTouchMode property of the EditText view to "false" in the layout xml file, the onClickListener should behave as expected.

like image 138
Andrej Cvoro Avatar answered Dec 29 '22 03:12

Andrej Cvoro