C# 在xamarin中隐藏通知栏和标题栏

C# 在xamarin中隐藏通知栏和标题栏,c#,android,xamarin,C#,Android,Xamarin,在Styles.xml中 <style name="MyTheme.Splash" parent ="Theme.AppCompat.Light"> <item name="android:windowBackground">@drawable/splash_screen</item> <item name="android:windowNoTitle">true</item> </style> 我

在Styles.xml中

<style name="MyTheme.Splash" parent ="Theme.AppCompat.Light">
    <item name="android:windowBackground">@drawable/splash_screen</item>
    <item name="android:windowNoTitle">true</item>  
  </style>
我用下面的代码来隐藏标题栏

Window.RequestFeature(WindowFeatures.NoTitle); //This will Hide the title Bar
             this.Window.ClearFlags(WindowManagerFlags.Fullscreen); //to hide
但是什么都不起作用。如何同时隐藏标题栏和通知栏。感谢您的帮助。

添加主题:

'Resources/values/NoTitleTheme.xml'

<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<style name="Theme.NoTitle" parent="android:Theme">
<item name="android:windowNoTitle">true</item>
 </style>
</resources>

请显示您的清单文件标题栏隐藏,但如何隐藏通知栏(包含电池、wi-fi信号的栏)请查看更新的答案,并告诉我是否有帮助。如果有帮助,请接受答案。谢谢!,对我有用。
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<style name="Theme.NoTitle" parent="android:Theme">
<item name="android:windowNoTitle">true</item>
 </style>
</resources>
 [Activity(Theme = "@style/Theme.NoTitle", MainLauncher = true, NoHistory = true)]

this.Window.ClearFlags(WindowManagerFlags.Fullscreen);// this hides status bar of particular activity