I try to create an application sample with Xamarin using XAML et Visual Studio. For exemple, the following code is InitPage.xaml.
<RelativeLayout> <Image Source="baseandroid.png" RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,Property=Width}" RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent,Property=Height}"/> <Grid RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,Property=Width}" RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent,Property=Height}"> <Label FontSize="14" Text="test" TextColor="White" HorizontalOptions="Start" VerticalOptions="Center" WidthRequest="100"
/>
baseandroid.png can be found in Android > Ressources > Drawable
But i can't display image enter image description here