작업 내에서 작업 표시 줄을 제거하는 올바른 방법은 무엇입니까?Holoeverywhere : 런타임에 프로그래밍 방식으로 작업에서 작업 표시 줄을 제거하는 방법
ThemeManager.setDefaultTheme(ThemeManager.DARK);
ThemeManager.map(ThemeManager.DARK, R.style.Holo_Demo_Theme);
ThemeManager.map(ThemeManager.LIGHT, R.style.Holo_Demo_Theme_Light);
ThemeManager.map(ThemeManager.MIXED, R.style.Holo_Demo_Theme_Light_DarkActionBar);
ThemeManager.map(ThemeManager.DARK | ThemeManager.FULLSCREEN, R.style.Holo_Demo_Theme_Fullscreen);
ThemeManager.map(ThemeManager.LIGHT | ThemeManager.FULLSCREEN, R.style.Holo_Demo_Theme_Light_Fullscreen);
ThemeManager.map(ThemeManager.MIXED | ThemeManager.FULLSCREEN, R.style.Holo_Demo_Theme_Light_DarkActionBar_Fullscreen);
에서 :
내 활동
는 org.holoeverywhere.app.Activity내가 org.holoeverywhere.app.Application 및 시작 경영진에서이 정적 코드를 확장하는 사용자 정의 응용 프로그램 클래스를했습니다를 확장 내 활동
protected void onCreate(Bundle savedInstanceState) {
ThemeManager.removeTheme(this);
setTheme(ThemeManager.DARK | ThemeManager.FULLSCREEN);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
내가 바 -table- android 4.1.1
에 코드에서 requestWindowFeature(Window.FEATURE_NO_TITLE)
를 추가하는 경우는을 제거 핸드셋에있는 동안-android 2.3.3
- 막대가 제거되지 않습니다. holoeverywhere 모든 것을 소개하기 전에
런타임에 holoeverywhere의 액션 바을 제거하는 올바른 방법은 단지 requestWindowFeature(Window.FEATURE_NO_TITLE).
로 괜찮 았는데?
Prototik에게 감사드립니다. – Maxj
또한 setTheme (ThemeManager.DARK | ThemeManager.NO_ACTION_BAR)와 함께 작동합니다. NO_ACTION_BAR 대신 ThemeManager.FULLSCREEN을 사용하고있었습니다. – Maxj