Onclick on view pager in android does not work in my code -


I have implemented to see pager in my code and I have clicked on the view pager but listened to my On-click listener is not working I will post my code

  viewpager.setOnClickListener (New OnListListener) {@Override Public Zero (click V) {Log.i (" *** "," ** * "); Toast. GetActivity ()," XXXX ", Toast .LENGTH_SHORT) Show ();}});  ViewPager  

clicklistener . This is not working because the child of View-Pager is blocking the parent's event (i.e. ViewPager). If you are adding images to the viewpace using a pagerapetter, then click on ImageView to simplify it.


Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

javascript - Enable/Disable form elements and changing the values of button at a time? -