Switch Enable/Disable swiping of ViewPager

As CardView Height and Width are 100% it comes in Front of ViewPager and Blocks its Swiping Property.

When its Visible to False ViewPager becomes Swipeable again.

1 Like

Ok wait i will.

what if you have to swipe down to see more component

Sorry, i didn’t understood your Question.
Can you Repeat Briefly.

Okay,
Suppose we have content more than the height of devices then user must need to scroll down to see it but i think you have covered whole content with card so scrolling will also be disabled…

Did you understand what i want to say??

tenor

Waiting

#offtopic

1 Like

Umm…Yes.
You are Right.

But it will depend on for what you want to Stop user from Swiping.

For Example in my Case on Position2 of ViewPager,
Data (Column from Airtable) is asked to create DynamicCardViews and i want that users don’t move until all the CardViews are Created.

I want users to not to move because when DynamicCardViews are Created Screen Freezes for 2 to 3 Seconds until all CardViews are Created, and i dont want Users to Notice that.

So, in my case it Solves the Problem, and Reduces Loading Time as on 3 Positions of my ViewPager i create DynamicCardView and if i create them all on Screen Initialize it will take a lot of time.

are you using image somewhere that is created dynamically?

Yes, You pointed out Correct.
But im loading them Asynchronously. But still it Freezes.

try to use this extension to load image

Yes i am Using this Extension only along with YusufCihan DynamicComponent Extension.

1 Like

the are you using any background image?

No. No Background.

the may that’s due to dynamic card view of kodular

In YusufCihan Extension in Component i need to write this for CardView - “MakeroidCardView”

so whats problem in it ?

He pointed out Makeroid so i said.
Not any Problem.

yes that’s why i wrote that :joy:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.