2013-02-27 5 views
1

내 앱이 Nexus 7에서 톱 제목 표시 줄을 표시하고 숨길 수 없습니다. 내 파일 :Nexus 7에서 제목 상단 표시 줄을 숨길 수 없음

styles.xml

<!-- 
    Base application theme, dependent on API level. This theme is replaced 
    by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 
--> 
<style name="MyAppBaseTheme" parent="android:Theme.Light.NoTitleBar"> 
    <!-- 
     Theme customizations available in newer API levels can go in 
     res/values-vXX/styles.xml, while customizations related to 
     backward-compatibility can go here. 
    --> 
</style> 

<!-- Application theme. --> 
<style name="MyAppTheme" parent="MyAppBaseTheme"> 
    <!-- All customizations that are NOT specific to a particular API-level can go here. --> 
</style> 

값-V11/styles.xml

<!-- 
    Base application theme for API 11+. This theme completely replaces 
    AppBaseTheme from res/values/styles.xml on API 11+ devices. 
--> 
<style name="MyAppBaseTheme" parent="android:Theme.Holo.Light.NoActionBar"> 
    <!-- API 11 theme customizations can go here. --> 
</style> 

값-V14/styles.xml

<!-- 
    Base application theme for API 14+. This theme completely replaces 
    AppBaseTheme from BOTH res/values/styles.xml and 
    res/values-v11/styles.xml on API 14+ devices. 
--> 
<style name="MyAppTheme" parent="android:Theme.Holo.Light.NoActionBar"> 
    <!-- API 14 theme customizations can go here. --> 
</style> 

와 나는 또한 내 주요 활동에 이것을 추가 :

@Override 
protected void onCreate(Bundle savedInstanceState) 
{ 
    super.onCreate(savedInstanceState); 

    requestWindowFeature(Window.FEATURE_NO_TITLE); 

답변

2

이 당신의 주요 활동에

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
          WindowManager.LayoutParams.FLAG_FULLSCREEN); 

를 추가합니다.

+0

고마워,이 사람은 나를 위해 일했다. – thomaus

+0

도와 주셔서 감사합니다. – SMT

관련 문제