1
As I program to click and hold down call a method other than just a normal click in Listview?
I would like tips, tutorials something that can help me.
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent(getActivity().getBaseContext(), inalcancaveis_tela.class);
startActivity(intent);
}
I call this method on onCreateView
list.setOnItemClickListener(this);
NOTE: to using extends Fragment
Thanks, if I need to use onItemClick would have how? and how could I implement it?
– Guilherme
Hi Guilherme to use onItemClick in conjunction with onItemLongClick just implement the Onitemclicklistener event and make the call to register: list.setOnItemClickListener(this); will be two separate methods, each treating a different event.
– Marabita