Skip to content

Android ImageButton Aspect="AspectFit" not display correctly #24856

@HuaFangYun

Description

@HuaFangYun

Description

image

        <VerticalStackLayout>
            <Frame Margin="10,70,10,10" HeightRequest="300">
            </Frame>
            <ImageButton Source="avatar.png"  CornerRadius="10" BorderColor="{StaticResource White}" BorderWidth="3" Aspect="AspectFit"  BackgroundColor="{StaticResource PrimaryDark}" WidthRequest="80" HeightRequest="80" HorizontalOptions="StartAndExpand" Margin="30,-335,20,0"/>

        </VerticalStackLayout>

On Windows correctly:
image

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.90 SR9

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-in-9.0.21i/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions