0

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!!!

twlkyao
  • 14,302
  • 7
  • 27
  • 44
user2261110
  • 51
  • 1
  • 7

0 Answers0