I have used the setOnLongClickListener()
for the ViewPager:
viewPager.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), "LongClick", Toast.LENGTH_SHORT).show();
return false;
}
});
But the above code didn’t work in the program. In addition to that it does not return any warning or error … I don’t know what is wrong with it!!!