-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Flashing border on scroll within ListView on Android when border-radius is applied #4322
Comments
Hi @sserdyuk,
|
@tsonevn Here's the project https://github.com/sserdyuk/ns-listview-border-bug The bug is pretty visible on the 7.1 device, but I also have an older 4.4.2 test device, and it's not showing the same issue. Might be a difference in speed of hardware or Android API version. Setting the radius in the XML itself makes no difference. |
@tsonevn I've added another "slow-mo" video to the repository that clearly displays what's happening on scroll. |
@tsonevn Another difference at play might be pixel density. The issue is present on Nexus6, which is xxxhdpi, and the other phone is not. |
Hi @sserdyuk, |
@tsonevn I don't see the bug tag nor the severity one. Is this scheduled to be fixed? |
Hi @sserdyuk, |
This is an "Image" issue, when you replace the Image with:
it work like a charm. |
Sorry. Clicked the wrong button. |
… uniform corner radiuses if the border color is uniform
We are applying the corner radius as complex clipping added to the canvas. The fix we will attempt is to draw the images using the canvas api similar to the way we draw css background. PRs:
There are 3 additional tests:
It should now be possible to draw a CSS border using non-uniform corner radiuses and non-uniform border widths in Android as long as the border color is uniform. |
As a side effect the android image view now applies antialiasing when drawing rounded images. |
We have found some issues that should be fixed:
And these two, won't be fixed as part of this issue, but we will keep them in mind:
|
… uniform corner radiuses if the border color is uniform
…iew radiuses (#4573) * Image corners were blinking in #4322 and CSS border will now draw non uniform corner radiuses if the border color is uniform * Implement per-side corner radiuses for iOS * Update stretch-mode example * Update matrix-mode example * Update image resources * Add clipping for non uniform radii without border width, don't throw for missing image resources in css
The fix is already available with tns-core-modules@next and will be officially released with tns-core-modules@3.1.1. If you still experience some issues related to the topic feel free to contact us. Any feedback will be highly appreciated. |
… uniform corner radiuses if the border color is uniform
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The rounded borders are flashing in and out on list view scroll, see the image below. Taken on Nexus 6 with Android 7.1.
The text was updated successfully, but these errors were encountered: