[英]Can I have only one Xamarin Content Page with no full screen in Android?
I have seted android:windowFullscreen = false
for achiving to fix an issue that was kicking out from screen some element views when soft keyboard is open.我设置了
android:windowFullscreen = false
以解决在打开软键盘时从屏幕中踢出某些元素视图的问题。 I was able to solve the problem, but now my whole app has no full screen mode.我能够解决问题,但现在我的整个应用程序没有全屏模式。 Is there any chance of having only a specific page without full screen mode in Xamarin Android?
在 Xamarin Android 中是否有可能只有特定页面而没有全屏模式?
Xamarin.Android you can add or remove full screen flag in Activity. Xamarin.Android 您可以在活动中添加或删除全屏标志。
protected override void OnCreate(Bundle bundle)
{
.....
//Add full screen flag
Window.SetFlags(Android.Views.WindowManagerFlags.Fullscreen, Android.Views.WindowManagerFlags.Fullscreen);
//Remove full screen flag
Window.ClearFlags(Android.Views.WindowManagerFlags.Fullscreen);
}
Looks you are using a common theme that is applicable to all activities.看起来您正在使用适用于所有活动的通用主题。 So, all activities are following same.
因此,所有活动都遵循相同的。 So, this can be reset in code behind or you can use two different theme one for full screen and other for without full screen.
因此,这可以在后面的代码中重置,或者您可以使用两种不同的主题,一种用于全屏,另一种用于不全屏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.