Repository navigation
Closed
Labels
area/xf-wasm-renderersCategorizes an issue or PR as relevant to WebAssembly Renderers for Xamarin Formskind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platform
Description
I'm submitting a...
Bug report (I searched for similar issues and did not find one)
Current behavior
When adding a DatePicker on a page, it renders directly in its "edit" mode (i.e the "popup" to select a day with "cancel" and "ok" buttons at the bottom).
Moreover, that "popup" isn't one as it is constrained to its parent (say a row in a grid) instead of being in front of all other controls in the page. As such, if it doesn't have enough room, it is cropped and the user cannot see the "cancel" and "ok" buttons.
Expected behavior
The DatePicker should display the bounded date and only show the "popup" once the user tap on the control. Then the "popup" should be centered in the in front of every other controls.
Minimal reproduction of the problem with instructions
The following xaml should be enough:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height = "*">
<RowDefinition Height = "*">
<RowDefinition Height = "*">
<RowDefinition Height = "*">
</Grid.RowDefinitions>
<DatePicker Date="{Binding Date}" Grid.Row=0 />
<DatePicker Date="{Binding Date}" Grid.Row=1 />
<DatePicker Date="{Binding Date}" Grid.Row=2 />
<DatePicker Date="{Binding Date}" Grid.Row=3 />
</Grid>
Environment
Nuget Package: Uno.UI
Package Version(s): 1.31.0-dev.184
Affected platform(s):
- [ ] iOS
- [x] Android
- [ ] WebAssembly
- [ ] Windows
- [ ] Build tasks
Visual Studio
- [x] 2017 (version: 15.8.2 )
- [ ] 2017 Preview (version: )
- [ ] for Mac (version: )
Reacted by czendoo and hao
Metadata
Metadata
Assignees
Labels
area/xf-wasm-renderersCategorizes an issue or PR as relevant to WebAssembly Renderers for Xamarin Formskind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platform
Activity
HaoLife commentedon Sep 27, 2018
Display of DatePicker on Android
Display of DatePicker on Windows
Whether Android can display the same as Windows
@jeromelaban
FrancoisM commentedon Sep 27, 2018
Uno gave me that style that (almost) works.
When date is defined it almost looks like UWP (except no border) and we tap on it, it opens the android date selector fine.
davidjohnoliver commentedon Sep 27, 2018
Yes the default DatePicker style needs to be fixed in Uno, the workaround is to base off the style linked by @FrancoisM .
[-]DatePicker do not render properly in Android[/-][+]Add support for DatePicker[/+][-]Add support for DatePicker[/-][+]Fix DatePicker default Style[/+]Add UWP DatePicker Style
Add UWP DatePicker Style
TopperDEL commentedon Nov 24, 2019
Is there a plan on when this is going to be merged? I desperately Need a working DatePicker on Android.
The given Workaround leads to Problems with UWP. Furthermore, the Date-Binding does not work an Android with that style (or I'm simply tired and Dump now).
TopperDEL commentedon Dec 3, 2019
It seems I have the same issues on iOs. Is there a working reference-implementation for Date- and TimePicker available where I can check my implementation?
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style
fix(styles): Add UWP DatePicker Style