Skip to content

[Droid] Pivot content is not set at once #11914

Closed

Description

@FrozDark

Current behavior

When control is loaded it's content is empty even the selector is set on first pivot item. You have to reselect item to make it work

agaga

Expected behavior

agaga2

How to reproduce it (as minimally and precisely as possible)

Repro:
PivotDroidIssues.zip

Workaround

Reselect

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno 4.8.15

Affected platforms

Android

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    difficulty/tbd
    kind/bug
    triage/untriaged
    on Apr 6, 2023
  2. added
    area/pivot
    on Apr 6, 2023
  3. added
    project/items 🧾
    and removed
    triage/untriaged
    on Apr 6, 2023
  4. jeromelaban commented on Apr 6, 2023

    @jeromelaban
    Member

    Thanks for the report. Is this a new behavior, or a regression? Could you try with an earlier build and a prerelease build?

  5. FrozDark commented on Apr 15, 2023

    @FrozDark
    Author

    Thanks for the report. Is this a new behavior, or a regression? Could you try with an earlier build and a prerelease build?

    Tried latest dev build and the issue resolved

  6. FrozDark commented on Apr 15, 2023

    @FrozDark
    Author

    Strange, but now it doesn't.

  7. changed the title [-][Droid] Pivot content is not set at once[/-] [+][Droid] `Pivot` content is not set at once[/+] on Jul 14, 2023
  8. added
    difficulty/medium 🤔
    area/porting 🖨️
    and removed
    difficulty/tbd
    on Oct 25, 2023
  9. github-actions commented on Aug 8, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  10. added
    stale
    on Aug 8, 2025
  11. removed
    stale
    on Aug 8, 2025
  12. MartinZikmund commented on Aug 8, 2025

    @MartinZikmund
    Member

    Still relevant

  13. added
    triage/potentially-fixed
    on Apr 10, 2026
  14. MartinZikmund commented on Apr 10, 2026

    @MartinZikmund
    Member

    Repro generator

    Runtime test(s) added in branch dev/mazi/repro/11914:

    • src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Pivot.cs → When_Pivot_LoadedWithItemsSource_Then_FirstItemContentIsVisible
    • src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Pivot.cs → When_Pivot_LoadedWithInlineItems_Then_FirstItemContentVisible

    ⚠️ The test(s) pass on Skia targets. The issue reports the bug on Android, which is a native target not covered by the Skia runtime test runner. This bug is likely native-target-specific and may not reproduce on Skia. A PR has been created to add the passing test(s) as regression coverage.

    The Android path uses NativePivotPresenter with a ViewPager/FragmentPagerAdapter which is separate from the Skia/UWP template path exercised by these tests.

  15. added a commit that references this issue on Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/pivotarea/porting 🖨️difficulty/medium 🤔has-repro-branchkind/bugproject/items 🧾triage/potentially-fixed

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions