Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android RoundedBoxView rounding value issue when power saving mode is active #167

Open
Bejasc opened this issue Dec 19, 2018 · 2 comments
Open

Comments

@Bejasc
Copy link

Bejasc commented Dec 19, 2018

This is a fun one..

I have a RoundedBoxView that is looking to my App.xaml to collect its value from. The value is not programmatically generated, it's simply referenced in a bunch of places and uses the same value of 8.

My RoundedBoxView points to this value, and displays correctly when not in power saving mode. All controls referencing the same value also display correctly in this mode.

If power saving mode is enabled, any RoundedBoxView looking to this value is now, visually speaking, much more rounded than it was previously - despite using the same value of 8. Other controls that have rounding applied appear fine, as they were before.

I suspect that because power saving mode changes the screen resolution, some calculation is done by this plugin based on that resolution, or the pixel density of the screen, etc etc - which is now less in power saving mode, whilst the plugin uses the same calculations, and gives a much more rounded appearance.

Steps to Reproduce

  1. Launch app
  2. Observe RoundedBoxView rounding
  3. Close App entirely.
  4. Enable power saving mode, launch app again
  5. Observe RoundedBoxView rounding (more rounded)

I'm using a Galaxy S9+, with Android 8.0.0.

These images show the issue.

Normal

Power Saving Enabled

@alextorres50
Copy link

This library is to IOs, not for Android

@Bejasc
Copy link
Author

Bejasc commented Dec 21, 2018

This is a Xamarin.Forms repo, it's not specific to iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants