xamarin Xam.plugin.media picking照片显示在android上的启动画面

z2acfund  于 2022-12-07  发布在  Android
关注(0)|答案(1)|浏览(133)

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);
cyej8jka

cyej8jka1#

问题是在Android清单中。在Android清单中,Android主题被设置为用于闪屏的主题,我只是将android:theme = "@style/Theme. Splash "更改为android:theme = "@style/MainTheme"并了解每件事都工作正常。
第一个

相关问题