Skip to content

[Android] ImageButton - CornerRadius is incorrectly applied on Android with URI source #28948

Open
@Odaronil

Description

@Odaronil

Description

Hi, everybody
Cornerradius is incorrectly applied on Android for ImageButton if you use the Uri image. 🐞The problem has been there for a very long time, from the very beginning .net 9
IOS is applied correctly:
Image
Android is incorrectly applied 🐞:
Image

Steps to Reproduce

  1. Create a File > New .NET MAUI App
  2. Add a ImageButton like so:
            <Grid ColumnDefinitions="auto,*" ColumnSpacing="8">
                <ImageButton Source="https://raw.githubusercontent.com/jamesmontemagno/app-monkeys/master/baboon.jpg" Command="{Binding OpenSomethingCommand}" WidthRequest="84" HeightRequest="92" CornerRadius="8" BorderWidth="1" BorderColor="Blue" Aspect="AspectFill" />
                <VerticalStackLayout Grid.Column="1">
                    <Label Text="Header text" />
                    <Label Text="Description text" />
                </VerticalStackLayout>
            </Grid>

Expected outcome: CornerRadius should work just like on iOS

Link to public reproduction project repository

No response

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.60 SR6

Affected platforms

Android

Affected platform versions

Visual Studio 17.13.6, Android API 35, IOS 18.4, MAUI 9.0.60 SR6

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions