1
How to program to click and hold down call a method other than just a normal click?
I would like tips, tutorials something that can help me.
I’m having a new problem using the Onitemclick method and the onItemLongClick method have already implemented onItemClick and I’m in doubt how to implement also the
@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
@Walkin you unintentionally answered a question of mine (I did not get to ask here on the site) that I left as a pending of my project. I handle a click event and a long click event, only when I used the long click the click event was also called. I didn’t know it was because of the return false or true. Thank you very much. + 1 for your reply.
– Lucas Santos
It is... These return parameters of events are very complicated, I’ve had several problems with it. I’m glad you helped.
– Wakim