0
我在應用程序中使用微調。在我的應用程序Android標題欄和通知欄是隱藏的。 但是,當我點擊微調器時,隱藏的通知欄可以看到幾分之一秒。這裏是我的代碼:微調單擊下拉菜單顯示狀態欄
Main.java:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Hide the Title Bar
requestWindowFeature(Window.FEATURE_NO_TITLE);
// Hide the Notification or Status Bar
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.myActivity);
的main.xml:
<activity android:name=".YourClassName"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
}
但我仍然不能解決這個問題。如果任何人有任何解決方案,請讓我知道。