uno.toolkit.ui icon indicating copy to clipboard operation
uno.toolkit.ui copied to clipboard

[Android] Sliding SelectionIndicator for CupertinoSegmentedControl doesn't appear

Open rajamatt opened this issue 1 year ago • 0 comments

Current behavior

SelectionIndicator is offscreen/invisible:

cupertino_sliding_android

User has to flip their device to a landscape view, then flip their device back to portrait and the indicator appears:

cupertino_sliding_android2

Sometimes the indicator appears as a small square:

cupertino_sliding_android3

Expected behavior

  • The SelectionIndicator should not be invisible at first.
  • The SelectionIndicator should take the full width of the option in the TabBar.

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

  1. Open UnoToolkit app on Android.
  2. Open BurgerMenu on the top left.
  3. Click on Controls from BurgerMenu.
  4. Click on SegmentedControl.
  5. Observe that the SelectionIndicator is not visible.
  6. Turn device sideways, observe that the SelectionIndicator becomes visible.

Nuget Package:

Package Version(s):

Affected platform(s):

  • [ ] WebAssembly
  • [x] Android (Tested with Galaxy A14 SM-A146W with Android 13.0)
  • [ ] iOS
  • [ ] macOS (AppKit)
  • [ ] Mac Catalyst
  • [ ] Skia
    • [ ] WPF
    • [ ] GTK (Linux)
    • [ ] Linux Framebuffer
    • [ ] Tizen
  • [ ] Windows

IDE:

  • [x] Visual Studio 2022
  • [ ] Visual Studio 2019
  • [ ] Visual Studio Code
  • [ ] Visual Studio for Mac
  • [ ] Rider Windows
  • [ ] Rider macOS

Relevant plugins:

Anything else we need to know?

The gifs were recorded while working on #524. The issue occurs on the "main" branch of Toolkit as well, hence creation of this new issue. In the gifs the correct option is selected because that's what was fixed in the above issue.

rajamatt avatar Jun 13 '23 14:06 rajamatt