uno.toolkit.ui
uno.toolkit.ui copied to clipboard
[Android] Sliding SelectionIndicator for CupertinoSegmentedControl doesn't appear
Current behavior
SelectionIndicator is offscreen/invisible:
User has to flip their device to a landscape view, then flip their device back to portrait and the indicator appears:
Sometimes the indicator appears as a small square:
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)
- Open UnoToolkit app on Android.
- Open BurgerMenu on the top left.
- Click on Controls from BurgerMenu.
- Click on SegmentedControl.
- Observe that the SelectionIndicator is not visible.
- 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.