You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Created a tabbed page with 5 tab items. When we switch from between 1-4 tab items it works fine. When we click on 5 tab item and then click on any of tab from 1-4 it reload the view everytime. It calls OnSizeAllocated() method everytime. It happens in android.
Steps to Reproduce
Run the uploaded project.
Expected Behavior
It should not refresh/reload the view.
Actual Behavior
It's reloading every time.
Basic Information
Version with issue: Xamarin.forms 4.3.0.947036 and afterwords
Last known good version: Xamarin.forms 3.4.0.1009999
The Android ViewPager, which is backing the TabbedPage, keeps a minimum number of pages loaded in memory to keep the UI fast and responsive. If you go beyond the initial offscreen limit, it will start disposing pages and recreating them as needed. If you want to prevent this, you can increase the offscreen limit using the TabbedPage.OffscreenPageLimit platform specific (see https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/android/tabbedpage-page-swiping). However, keep in mind that this will slow down your startup time and inflate your app's memory usage. In any event, this is expected behavior.
Description
Created a tabbed page with 5 tab items. When we switch from between 1-4 tab items it works fine. When we click on 5 tab item and then click on any of tab from 1-4 it reload the view everytime. It calls OnSizeAllocated() method everytime. It happens in android.
Steps to Reproduce
Expected Behavior
It should not refresh/reload the view.
Actual Behavior
It's reloading every time.
Basic Information
Reproduction Link
TabBar.zip
The text was updated successfully, but these errors were encountered: