Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Image overlap issue over Frame in Xamarin Android

$
0
0

I am trying to build following layout in XAML for Xamarin forms app.

Here is my code

<AbsoluteLayout
        HorizontalOptions="FillAndExpand"
        HeightRequest="350">
        <Frame
            AbsoluteLayout.LayoutFlags="SizeProportional"
            AbsoluteLayout.LayoutBounds="0,0,1,1"
            BackgroundColor="White"
            HasShadow="true"
            CornerRadius="10"
            Margin="20,25,20,25">
            <StackLayout>
            </StackLayout>
        </Frame>
        <Image
            AbsoluteLayout.LayoutFlags="PositionProportional"
            AbsoluteLayout.LayoutBounds="0.5,1,50,50"
            Source=“icon.png”/>
    </AbsoluteLayout>

It works good on IOS but icon image is not shown correctly in android.
Please look at following screenshot.

Please help me to fix!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>