-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Resources.System.DisplayMetrics.HeightPixels return the false height when with the notch display [Xamarin.Forms.Android]] #7085
Comments
Thanks for the issue. However, I don't think this is a Xamarin.Forms issue. Google has only provided notch (or display cutout as they call it) API's for Android 9 and above. On those devices you should be able to configure some layout settings and/or retrieve the notch height, etc. that you can use to determine the right height. Some more information can be found here: https://developer.android.com/guide/topics/display-cutout |
Hi @jfversluis, |
any update on this ? |
Hi @samhouts, Any update on this ? |
Hi @samhouts , Any update on this ? |
Hi @samhouts Any update on this? |
Hi @samhouts Any update on this ? |
Hi @samhouts Any update on this? |
Description
Hi Team,
We at Syncfusion develop data virtualization controls for Xamarin and we have more than 90 controls spread across all platforms of Xamarin. Please refer the below link for a description about us.
UserGuide: https://help.syncfusion.com/xamarin/sfdatagrid/overview
FeatureTour: https://www.syncfusion.com/products/xamarin
UserGuide:https://help.syncfusion.com/xamarin/sflistview/getting-started
Issue
We have recently encountered an issue in Xamarin.Forms.Android, when we are taking the "Resources.System.DisplayMetrics.HeightPixels" its difference in height pixel with the device of notch display and normal display. we are trying to displaying the popup for full screen in both the with and without notch display, we are doing calculated by minus the status bar height from the value of Resources.System.DisplayMetrics.HeightPixels its working fine for the Samsung S8 device and S7 etc, when we come to a device like One plus, One Plus 7 with notch display its return the value was didn't consider the status bar and return the height for the below notch display space.
Note :
Permanently hide the navigation bar in the device.
Steps to Reproduce
Expected Behavior
Resources.System.DisplayMetrics.HeightPixels should return the whole height of the screen whether its notch display or normal display
Actual Behavior
Resources.System.DisplayMetrics.HeightPixels didn't consider the status bar height in notch display.
Basic Information
Screenshots
Samsung device
One Plus 6
Reproduction Link
Sample Popup_Demo.zip
The text was updated successfully, but these errors were encountered: