我正在使用FFImageLoading,但我称之为SDK的视图显然没有显示但正在加载。这是StackTrace:
01-25 13:37:14.393 I / art(9376):拒绝重新初始化以前失败的类java.lang.Class
01-25 13:37:14.394 I / art(9376):拒绝先前失败的类java.lang.Class的重新初始化
01-25 13:37:14.394 I / art(9376):拒绝先前失败的类java.lang.Class的重新初始化
<?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="App1.Views.MisActivos.PhotoActivo"
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms">
<ContentPage.Content>
<StackLayout Orientation = "Vertical" VerticalOptions = "FillAndExpand" BackgroundColor = "White" Spacing="0">
<StackLayout Orientation="Horizontal" BackgroundColor="Gray" HorizontalOptions="FillAndExpand" >
<Label x:Name="TxtAd" Text="" TextColor="White" FontSize="20" HorizontalTextAlignment="Center"></Label>
<Button x:Name="btn" BackgroundColor="Gray" BorderColor="Gray" Text="X" FontSize="8" WidthRequest="40" HeightRequest="40" Clicked="Back_Clicked" HorizontalOptions="EndAndExpand"></Button>
</StackLayout>
<StackLayout Orientation="Horizontal" BackgroundColor="White" HorizontalOptions="Center" VerticalOptions="Center">
<ffimageloading:CachedImage HorizontalOptions="Center" VerticalOptions="Center"
WidthRequest="300" HeightRequest="300"
DownsampleToViewSize="true"
Source = "Photo.jpg"
x:Name="PhotoImage">
</ffimageloading:CachedImage>
</StackLayout>
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand" BackgroundColor="White">
<Button x:Name="CameraButton" Image="Photo1.png" HorizontalOptions="FillAndExpand" />
<Button x:Name="BtnVerifica" HeightRequest="60" BackgroundColor="Gray" Image="Verificar.png" Clicked="BtnOk_Click" HorizontalOptions="FillAndExpand" IsVisible="false"></Button>
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>
我用它来称呼this.Navigation.PushModalAsync(new PhotoActivo(Activo, "ACT"));
,但没有显示任何内容。