Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Android TitleView lose Labels while rotating #14781

Open
AlleSchonWeg opened this issue Oct 22, 2021 · 1 comment
Open

[Bug] Android TitleView lose Labels while rotating #14781

AlleSchonWeg opened this issue Oct 22, 2021 · 1 comment

Comments

@AlleSchonWeg
Copy link
Contributor

Description

Android looses lables if you rotate the device a few times and change orientation at the parent StackLayout.

Steps to Reproduce

  1. Open : https://github.com/AlleSchonWeg/Xamarin.Forms
  2. Goto TitleView Gallary Page
  3. Rotate the device few times

Expected Behavior

All two labels should display

Actual Behavior

Only one label remains

Basic Information

  • Version with issue: -
  • Last known good version: Current 5.0.0 branch
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library / AndroidX Version:
  • NuGet Packages:
  • Affected Devices:

Environment

Show/Hide Visual Studio info

Build Logs

Screenshots

Before rotation
image
After rotation:
image

Reproduction Link

Workaround

@AlleSchonWeg AlleSchonWeg added s/unverified New report that has yet to be verified t/bug 🐛 labels Oct 22, 2021
@jsuarezruiz jsuarezruiz added a/titleview p/Android e/2 🕑 2 and removed s/unverified New report that has yet to be verified labels Oct 25, 2021
@AlleSchonWeg
Copy link
Contributor Author

I tried to set HeightRequest to the parent StackLayout in OnSizeAllocated. 56 for portrait and 48 for landscape. Now all labels are visible, but when rotating the labels "jump" sometimes. Because the parent StackLayout resizes after the rotation is completed. Specially from landscape to portrait.
Can't set VerticalOptions="FillAndExpand" because it's not working with android. See old issue: #12392

@AlleSchonWeg AlleSchonWeg changed the title [Bug] Android TitleView looses Labels while rotating [Bug] Android TitleView lose Labels while rotating Oct 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants