I have a question concerning the views in android studio:
Is there a method which returns a Boolean to indicate if a "view is on a longclick"
I have a question concerning the views in android studio:
Is there a method which returns a Boolean to indicate if a "view is on a longclick"
By setting an onClickListener on it, then taking action when the listener's onClick() method is called, e.g.:
View btnView = view.findViewById(R.id.btnView);
btnView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// do something
}
});