You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Create few View Cell's with some random labels and at least one View Cell with a Date Picker whose date is initialized with a day/ month of single digit value. Now when you try to change the value of the date picker after launching the app if you alter that single digit day/month with a double digit value you start to notice that your year value gets truncated by those many number of digits as your additional digits in your new day/month. If you have enough number of cells so that you can scroll this particular cell out of sight and come back, then only you can see the whole value properly.
I can currently able to replicate this issue on any android emulator, Mi A3, Galaxy A51.
This bug only occurs on android.
Steps to Reproduce
Create a TableView with a number of ViewCell's one of which shall contain a date picker
Initialize the DatePicker's date to some date which takes single digit in its day/month field or both (Ex: July 4th 2021 / Oct 3rd 2021)
Once the view is loaded try to change the date to a value which has double digit in its day/month (Ex: Nov 24th 2021 / Oct 13th 2021)
Here is my sample code:
<TableRoot>
<TableSection TextColor="DimGray" >
<ViewCell>
<Label BackgroundColor="Transparent" Text="Learn more at https://aka.ms/xamarin-quickstart" />
</ViewCell>
<ViewCell >
<StackLayout BackgroundColor="White" Orientation="Horizontal" Padding="10, 50">
<Label HorizontalOptions="StartAndExpand" BackgroundColor="Transparent" TextColor="Black" Text="Start developing now" FontSize="Title" />
<DatePicker HorizontalOptions="End" Date="08-07-2021"></DatePicker>
<TimePicker HorizontalOptions="End"></TimePicker>
</StackLayout>
</ViewCell>
<ViewCell>
<StackLayout BackgroundColor="White" Orientation="Horizontal" Padding="10, 50">
<Label BackgroundColor="Transparent" TextColor="Black" Text="Start developing now" FontSize="Title" />
<Label BackgroundColor="Transparent" TextColor="Black" Text="Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try!" />
</StackLayout>
</ViewCell>
<ViewCell>
<StackLayout BackgroundColor="White" Orientation="Horizontal" Padding="10, 50">
<Label BackgroundColor="Beige" TextColor="Black" Text="Start developing now" FontSize="Title" />
<Label BackgroundColor="Transparent" TextColor="Black" Text="Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try! \n Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try! \n Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try!" />
</StackLayout>
</ViewCell>
</TableSection>
</TableRoot>
Here is the same view but made from a ScrollView and StackLayout combination instead, note that this also displays similar behavior only that even after scrolling up and down, issue never gets resolved in this case:
<StackLayout Orientation="Vertical">
<Label BackgroundColor="Transparent" Text="Learn more at https://aka.ms/xamarin-quickstart" />
<StackLayout BackgroundColor="White" Orientation="Horizontal" Padding="10, 50">
<Label HorizontalOptions="StartAndExpand" BackgroundColor="Transparent" TextColor="Black" Text="Start developing now" FontSize="Title" />
<DatePicker HorizontalOptions="End" Date="08-07-2021"></DatePicker>
<TimePicker HorizontalOptions="End"></TimePicker>
</StackLayout>
<StackLayout BackgroundColor="White" Orientation="Horizontal" Padding="10, 50">
<Label BackgroundColor="Transparent" TextColor="Black" Text="Start developing now" FontSize="Title" />
<Label BackgroundColor="Transparent" TextColor="Black" Text="Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try!" />
</StackLayout>
<StackLayout BackgroundColor="White" Orientation="Horizontal" Padding="10, 50">
<Label BackgroundColor="Beige" TextColor="Black" Text="Start developing now" FontSize="Title" />
<Label BackgroundColor="Transparent" TextColor="Black" Text="Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try! \n Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try! \n Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try!" />
</StackLayout>
</StackLayout>
Expected Behavior
Actual Behavior
Basic Information
Version with issue: 5.0.0.2244
Last known good version: ?
Platform Target Frameworks:
iOS:
Android: 10
UWP:
Android Support Library / AndroidX Version:
NuGet Packages:
Xamarin Forms 5.0.0.2244
Xamarin Essentials 1.7.0
NetStandard.Library 2.0.3
Affected Devices: Mi A3, Galaxy A51 and few other devices, Any Android Emulator running Android 10 / 11
Description
Create few View Cell's with some random labels and at least one View Cell with a Date Picker whose date is initialized with a day/ month of single digit value. Now when you try to change the value of the date picker after launching the app if you alter that single digit day/month with a double digit value you start to notice that your year value gets truncated by those many number of digits as your additional digits in your new day/month. If you have enough number of cells so that you can scroll this particular cell out of sight and come back, then only you can see the whole value properly.
I can currently able to replicate this issue on any android emulator, Mi A3, Galaxy A51.
This bug only occurs on android.
Steps to Reproduce
Here is my sample code:
Here is the same view but made from a ScrollView and StackLayout combination instead, note that this also displays similar behavior only that even after scrolling up and down, issue never gets resolved in this case:
Expected Behavior
Actual Behavior
Basic Information
Environment
Show/Hide Visual Studio info
Reproduction Link
TableViewIssuesDemo.ZIP
The text was updated successfully, but these errors were encountered: