Techiio-author
Started by Natasha JonesSep 30, 2021

Open
Viewpager2 blank fragment issue when used inside a Scrollview

1 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWES SHARE

I am trying to use ViewPager2 with Tablayout inside a Fragment. It does not show recyclerview when I keep it inside a Scrollview, whereas if I keep the ViewPager2 outside a Scrollview it works perfectly fine. Please help if anyone faced similar problem or have any idea about this?

I have two different layouts that I want under Scrolling. One layout has ViewPager and other is simple layout with Views.

Tried using NestedScrollview with fillViewport=true and set nested scrolling enabled to true. It didn't work

Kindly please provide your suggestions how to achieve this?

1 Replies

Techiio-commentatorNilima Paul replied 5 months ago0 likes0 dislikes

I am trying to use ViewPager2 with Tab layout inside a Fragment. It does not show a recycler view when I keep it inside a Scrollview, whereas if I keep the ViewPager2 outside a Scrollview it works perfectly fine. Please help if anyone faced a similar problem or has any idea about this?

I have two different layouts that I want under Scrolling. One layout has ViewPager and the other is a simple layout with Views.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance