Xamarin Forms, I am using Xam.Plugin.Media for taking and picking photo. Picking photo from gallery shows Splash screen and then pick photo. This issue is on Android Only, on iOS working fine.here is my code.I tried many things and I am stuck on this from many days please guide how can I deal with this issue. I just want to pick photo without showing splash screen just as happening in iOS.
var files = await CrossMedia.Current.PickPhotosAsync(new PickMediaOptions
{
CompressionQuality = 40,
CustomPhotoSize = 35,
PhotoSize = PhotoSize.MaxWidthHeight,
MaxWidthHeight = 2000
}).ConfigureAwait(true);
1条答案
按热度按时间cyej8jka1#
问题是在Android清单中。在Android清单中,Android主题被设置为用于闪屏的主题,我只是将android:theme = "@style/Theme. Splash "更改为android:theme = "@style/MainTheme"并了解每件事都工作正常。
第一个