2011-06-21 93 views
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"/> 

}

但我仍然不能解決這個問題。如果任何人有任何解決方案,請讓我知道。

回答

0

如果您使用平板電腦分辨率,那麼它將無法正常工作。 嘗試把

android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 

在應用此

<application android:icon="@drawable/icon" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name"> 

感謝像