Bright Lee
Bright Lee

Reputation: 2325

When I move to Fourth tab page from first one, It reloads every tab while it's moving!! on Xamarin.forms Android

I'm making app with using Xamarin.forms PCL. I'm using Appcompat toolbar and tabs for Android.

It looks great but the problem is, When I move to Fourth tab page from first one, It reloads every tabs while it's moving!! (2th, 3rd tab)

It causes big frame skip.

How can make it to slide to fourth tab without showing middle tabs?

I looked Youtube app, it does not seem to show middle tabs while it's moving.

Upvotes: 0

Views: 223

Answers (1)

Bonelol
Bonelol

Reputation: 546

That's native behaviour, it will pre-render nearby tabs; so for your instance, in Tab1, it renders Tab2, and when you go Tab 4, it also renders Tab3.

Similar questions are answered here Fragment in TabLayout only load when user slide Android

Stop Android TabLayout loading next page automatically

Upvotes: 1

Related Questions