xamarin.forms를 사용하여 응용 프로그램을 만들었습니다. 나는 iOS 측을 테스트하기 시작했고 로그인 화면의 내 배경 이미지가 확대되어 보입니다. 안드로이드에서 이미지가 올바르게 표시됩니다. 올바르게 표시하려면 변경해야 할 것이 있습니까?배경 이미지가 xamarin.forms의 비율을 벗어남 IOS
iOS 및 안드로이드 모두에서 MainPage.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="LoyaltyWorx.MainPage"
BackgroundImage="bk3.jpg"
>
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<StackLayout Orientation="Horizontal" VerticalOptions="Start">
<!-- top controls -->
</StackLayout>
<StackLayout VerticalOptions="CenterAndExpand">
<!-- middle controls -->
<BoxView HeightRequest="430"></BoxView>
<Button Text="Continue with Facebook" x:Name="LoginBtn" BackgroundColor="#4867aa" TextColor="White" FontFamily="Klavika" HorizontalOptions="CenterAndExpand" Clicked="LoginBtn_Clicked" />
</StackLayout>
<StackLayout Orientation="Horizontal" VerticalOptions="End" HorizontalOptions="Center">
<!-- bottom controls -->
<Frame OutlineColor="White" HorizontalOptions="StartAndExpand">
<StackLayout Orientation="Horizontal" VerticalOptions="End" HorizontalOptions="Center">
<!-- bottom controls -->
<StackLayout Grid.Row="1" Orientation="Horizontal" Spacing="0">
<Label
Text="Terms and conditions"
FontSize="13"
TextColor="#71757a"
FontAttributes="Bold"
x:Name="LblTerms"/>
<Label
Text=" and"
FontSize="13"
TextColor="#71757a"
/>
<Label
Text=" privacy policy"
FontSize="13"
TextColor="#71757a"
FontAttributes="Bold"
x:Name="LblPrivacy"/>
</StackLayout>
</StackLayout>
</Frame>
</StackLayout>
</StackLayout>
</ContentPage>
1 배경 이미지 모두입니까? 페이 스북 로그인 버튼과 다른 하단 버튼을 제외하고 –
그 배경 이미지. 방금 페이 스북 (Facebook) 용 버튼과 조건을 하단에 추가했습니다. –
콘텐츠 페이지 배경 이미지를 많이 재생할 수 있다고 생각하지 않습니다. 관련 레이아웃 및 배경 이미지를 제안합니다. 필요한 경우 게시 할 수 있습니다. 샘플 코드는 여기 –