-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ImageButton with CornerRadius is not calculated as expected on Android when Padding exists #11874
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@YiannisBourkelis can you attach a screen shot please? |
@PureWeen Yes. It is the reproducible project running on android on the left and iOS on the right. |
any updates on this basic thing? It was right on XF!! |
I also noticed this issue while migrating an Xamarin.Forms-app to .NET MAUI. Any news on this? |
Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0 with provided project: iOS 16.4: Can repro the text inside the ImageButton is not aligned exactly at the center of the ImageButton issue. |
Hi @YiannisBourkelis. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
@jsuarezruiz I ran the example posted by @XamlTest with my installation of Visual Studio Professional 2022 (Version 17.6.2) on an Android Device (Android 11 - API 30). I was able to reproduce the CornerRadius-issue with the provided code. |
Description
Trying to create a circular ImageButton, I am setting the CornerRadius half the width of the control, but on Android it does not appear as expected. If I remove the Padding it works, but it should also work with padding.
On iOS, MacCatalyst and Windows it works fine, however the text inside the ImageButton is not aligned exactly at the center of the ImageButton and appears a little blurry.
This is the code that creates the ImageButton
Check the reproduction project.
Steps to Reproduce
Just run the reproduction project targeting Android. The ImageButton will not appear as a circle.
Link to public reproduction project repository
https://github.com/YiannisBourkelis/maui_issues/tree/main/src/CornerRadiusIssue
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
Android Emulator - Pixel 5 - Api 33
Did you find any workaround?
No.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: