隐藏通知栏,而不使用全屏 [英] Hide notification bar without using fullscreen

查看:257
本文介绍了隐藏通知栏,而不使用全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的问题:是否有可能隐藏无需使用全屏标志了Android通知栏?我需要 adjustResize 我的应用程序所示的软键盘的时候,但全屏应用程序忽略调整大小(据我知道了)。

Here is my problem: is it possible to hide the android notification bar without using the fullscreen flag? I need to adjustResize my app when the soft keyboard is shown, but fullscreen apps ignore the resizing (as far as i know).

有没有人就如何使我的应用程序的外观全屏没有这个标志的想法?

Has anyone an idea on how to make my app look fullscreen without this flag?

下面是全屏标志的问题:它只是试图展示的一切重要,但我需要调整我的应用程序:

Here is the problem with the fullscreen flag: it only tries to show everything important, but i need to resize my app:

和XML:

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true"
    android:text="EditText1"/>

<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:text="EditText2" />

</RelativeLayout>

摘要:我期望看到两个 EditTexts 之后,我的应用程序调整和新的尺寸重绘

Summary: i expected to see both EditTexts after my app resized and the new dimensions are redrawn

推荐答案

这是一个已知的,而不是固定的Andr​​oid错误,请尝试解决方法的这里

This is a known and not fixed Android bug, try out the workaround here

所有信贷LEO

这篇关于隐藏通知栏,而不使用全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆