Xamarin 高质量图像使应用程序运行缓慢
我使用Xamarin.Forms,只有在Android中,高质量的图像会让应用程序运行缓慢。(iOS和Windows Universal正常工作)如何在我的命令下解决此问题Xamarin 高质量图像使应用程序运行缓慢,xamarin,xamarin.forms,Xamarin,Xamarin.forms,我使用Xamarin.Forms,只有在Android中,高质量的图像会让应用程序运行缓慢。(iOS和Windows Universal正常工作)如何在我的命令下解决此问题 <Image Scale="1.0" Aspect="AspectFill" VerticalOptions="FillAndExpand" HeightRequest="300"> <Image.Source> <UriImageSource Uri="{Binding
<Image Scale="1.0" Aspect="AspectFill" VerticalOptions="FillAndExpand" HeightRequest="300">
<Image.Source>
<UriImageSource Uri="{Binding url}" CacheValidity="5" CachingEnabled="True"/>
</Image.Source>
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="OnTapped" />
</Image.GestureRecognizers>
</Image>
尝试库。它异步加载图像,并具有许多有用的功能此外,您可以考虑为不同的屏幕创建不同的图像,以便使用低分辨率屏幕将使用快速低分辨率图像。了解更多