2
A
回答
1
添加到您的活動調用setContentVie前瓦特();
this.requestWindowFeature(Window.FEATURE_ACTION_BAR | Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
如果這麼想的工作試試這個
//use this to disable the icon from ActionBar
getActionBar().setDisplayShowHomeEnabled(false);
//use this to disable the application name from ActionBar
getActionBar().setDisplayShowTitleEnabled(false);
+0
這是行不通的你能告訴我任何其他方式做 – 2014-09-25 12:30:20
1
我不能確定,究竟你班級爲標題欄但你可以通過把下面的做到這一點的XML你的Android Manifest爲特定的活動刪除標題欄。
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen
+0
我不認爲這會工作作爲在清單文件中設置主題不會影響片段 – danidee 2014-09-25 12:27:15
0
使用此代碼在活動的onCreate()方法中添加內容之前:
getWindow().requestFeature(Window.FEATURE_NO_TITLE)
相關問題
- 1. 刪除標題欄(Android)
- 2. 刪除Android應用上的標題欄
- 3. 無法刪除android中的標題欄
- 4. Android對話框:刪除標題欄
- 5. Android 3.2從操作欄刪除標題
- 6. Android的標題欄去除
- 7. 移除Android的標題欄
- 8. 無法刪除標題欄
- 9. 刪除默認標題欄
- 10. Python Tkinter刪除標題欄
- 11. Bigcartel - 刪除邊欄標題
- 12. 刪除標題欄周圍的邊框
- 13. 刪除Windows窗體中的標題欄
- 14. 刪除android應用程序的標題欄
- 15. Android Studio刪除欄
- 16. 刪除標籤欄
- 17. 刪除欄標CSS
- 18. 刪除活動中的標題欄也會刪除圖像
- 19. 刪除Outlook AddIn邊欄標題
- 20. swift導航欄標題刪除動畫
- 21. Python/Tkinter:刪除標題欄沒有overrideredirect()
- 22. 如何刪除標題欄在JFrame中
- 23. 地鐵表單中刪除標題欄
- 24. Android從操作欄刪除標題,刪除名稱應用程序
- 25. 添加內容後刪除窗口標題欄[Android]
- 26. 關於刪除活動標題欄在Android中
- 27. 無法刪除標題欄Android應用程序
- 28. Android:我應該如何刪除活動標題欄?
- 29. 可以在創建窗口後刪除標題欄/標題嗎?
- 30. Java AWT:刪除框架標題欄並添加自定義標題欄
檢查此http://stackoverflow.com/a/22269798/1761003 – Gattsu 2014-09-25 12:07:36
兩者都是相同..標題欄和actionbar – 2014-09-25 12:08:13
告訴我你想要做什麼 – 2014-09-25 12:12:17