Wei Loon Wong
Wei Loon Wong

Reputation: 460

Xamarin Android - Splash screen flickering in Android 10

I have updated a new Splash screen to my application. I tried all the suggestions given from this similar question, but I still having splash screen flickering issues. I found this issues only occurred in Android 10, devices with Android 9.0 and below is working good.

I have racked my brain but I still have no idea what is the cause of issues. Would be grateful if someone can give me some advice. Thanks.

flickering image

Upvotes: 1

Views: 1112

Answers (2)

Nate Ko
Nate Ko

Reputation: 933

Make sure the application theme field is set to the splash theme in project properties. enter image description here

Upvotes: 1

ottermatic
ottermatic

Reputation: 1012

i believe i had this issue as well. do not use a separate splash activity. Set your MainActivity Theme=@style/Theme.Splash. Then in MainActivity.OnCreate change the theme manually

TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.SetTheme(Resource.Style.MainTheme);
base.OnCreate(savedInstanceState);

Upvotes: 2

Related Questions