LongItemClickListener on Listview android -


i have question, can apply onitemclicklisyener , onlongitemclicklistener on same listview? want delete items of listview on long item click, listview handling itemclicklistener view files.

what should now?

can explain how this?

here example

listview.setonitemclicklistener(new onitemclicklistener() {                  @override                 public void onitemclick(adapterview<?> parent, view view,                         int position, long id) {                         //do stuff             });                 listview.setonitemlongclicklistener(new onitemlongclicklistener() {                  @override                 public boolean onitemlongclick(adapterview<?> parent,                         view view, int position, long id) { //do stuff                                }}); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -