title: Onclick on view pager in android does not work in my code
body: <p>i have implemented view pager in my code and i have put on-click listener  on view pager but my on-click listener does not working i'll post my code</p>
  
  <pre><code>viewpager.setOnClickListener(new OnClickListener() 
  {
      @Override
      public void onClick(View v) 
      {
          Log.i("***","***");
          Toast.makeText(getActivity(), "XXXX", Toast.LENGTH_SHORT).show();
      }
  });
  </code></pre>