geftimov / android-viewpager-transformers

A collection of view pager transformers
Apache License 2.0
565 stars 142 forks source link

Button on ViewPager Child layout not clickable when DrawerFromBackTransformation is applied #6

Closed wanGiB closed 8 years ago

wanGiB commented 8 years ago

Nice job on ViewPagerTransformers, I tried applying the DrawerFromBackTransformer to my viewpager and everything worked well,however I got a problem...I have a button in each of my viewpager layouts and they are not clickable when this transformation is applied to the viewpager.If I remove the transformation everything works fine.......What should I do? Thanks

geftimov commented 8 years ago

I can not replicate it, sorry.

maciej-kaznowski commented 6 years ago

I too am experiencing this issue. However I see that the touch events are actually happening in the 1st page of the ViewPager, rather than in the correct page. This means that when I scroll in my 2nd page, the 1st page actually scrolls.

sebinpaul commented 6 years ago

I'm too experiencing this issue. My viewpager has 5 fragments. Each fragment has a RecyclerView. If i click an item of fragment 1's recyclerview, fragment 2's recyclerview item is clicked. Is the issue resolved or is there a workaround?

geftimov commented 6 years ago

@sebinpaul Does all of your fragments have solid background?

sebinpaul commented 6 years ago

All the fragments have transparent background and it is a must have for my app.

geftimov commented 6 years ago

That is unfortunately problem with fragments when they are added on top of each other. You can try to make all of them clickable. Hope it helps.

kibotu commented 5 years ago

tried it with the clickable background, doesn't seem to do the trick for me :(