java - Can not click on ListView content in android application -
i produced listview load data sqlite database using assethelper. program works want make clicklistener , add activity single data of listview content. can not make click on contents. used custom adapter list items sqlite.
arraylist `<customdto>` list = new arraylist`<customdto>`(); customadapter adapter = new customadapter(getapplicationcontext(),r.layout.custom_search_layout,list); listview.setclickable(false); listview.setadapter(adapter); //listview click registerforcontextmenu(listview); listview.setonitemclicklistener(new adapterview.onitemclicklistener() { public void onitemclick(adapterview<?> parent, view v, int position, long id){ //events } });
by calling listview.setclickable(false); disabled click events listview. hence cannot make clicks on contents of it.
Comments
Post a Comment