Android 启动屏幕在从一个页面导航到另一个页面之间可见xamarin表单
我正在从事Xamarin forms PCL项目,我想在我的项目中实现一个启动屏幕。下面是Xamarin.android部分的示例 当我从一个页面导航到另一个页面时,在页面之间可以看到启动屏幕。以上问题的任何解决方案 splash_screen.xmlAndroid 启动屏幕在从一个页面导航到另一个页面之间可见xamarin表单,android,xamarin,xamarin.forms,xamarin.android,xamarin-studio,Android,Xamarin,Xamarin.forms,Xamarin.android,Xamarin Studio,我正在从事Xamarin forms PCL项目,我想在我的项目中实现一个启动屏幕。下面是Xamarin.android部分的示例 当我从一个页面导航到另一个页面时,在页面之间可以看到启动屏幕。以上问题的任何解决方案 splash_screen.xml <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="fill_horizontal|fill_vertical"
android:src="@drawable/SplashScreen"
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#2196F3</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#1976D2</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">#FF4081</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowActionBar">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
style.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="fill_horizontal|fill_vertical"
android:src="@drawable/SplashScreen"
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#2196F3</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#1976D2</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">#FF4081</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowActionBar">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
真的
假的
#2196F3
#1976D2
#FF4081
真的
@可拉伸/飞溅屏幕
真的
@空的
真的
@样式/应用程序对话框样式
你不需要在继续之前完成启动屏幕吗?@Lucifer我尝试在StartActivity之后添加finish(),运气不好。它仍然可见。大家好,已经试过了,并且成功了。可能是