안녕하세요. 


안드로이드 3.0(허니콤) 부터  화면 하단에   System Bar  라는 것이 생겼지요.


이것을 숨기거나 보이거나 하는 방법이  있기는  한데요. 


API Demos 에도있는 데,  희한하게  해당 코드를 가져와서  버전확인해서 호출해도 동작을 하지 않더군요. 



안드로이드 3.0 부터 사용가능한 것으로 


http://developer.android.com/reference/android/view/View.html#STATUS_BAR_HIDDEN


public static final int STATUS_BAR_HIDDEN

Since: API Level 11

This constant is deprecated.
Use SYSTEM_UI_FLAG_LOW_PROFILE instead.

Constant Value: 1 (0x00000001)

public static final int STATUS_BAR_VISIBLE

Since: API Level 11

This constant is deprecated.
Use SYSTEM_UI_FLAG_VISIBLE instead.

Constant Value: 0 (0x00000000)

public static final int SYSTEM_UI_FLAG_HIDE_NAVIGATION

Since: API Level 14

View has requested that the system navigation be temporarily hidden. This is an even less obtrusive state than that called for by SYSTEM_UI_FLAG_LOW_PROFILE; on devices that draw essential navigation controls (Home, Back, and the like) on screen, SYSTEM_UI_FLAG_HIDE_NAVIGATION will cause those to disappear. This is useful (in conjunction with the FLAG_FULLSCREEN and FLAG_LAYOUT_IN_SCREEN window flags) for displaying content using every last pixel on the display. There is a limitation: because navigation controls are so important, the least user interaction will cause them to reappear immediately.

Constant Value: 2 (0x00000002)

public static final int SYSTEM_UI_FLAG_LOW_PROFILE

Since: API Level 14

View has requested the system UI to enter an unobtrusive "low profile" mode. This is for use in games, book readers, video players, or any other "immersive" application where the usual system chrome is deemed too distracting. In low profile mode, the status bar and/or navigation icons may dim.

Constant Value: 1 (0x00000001)

public static final int SYSTEM_UI_FLAG_VISIBLE

Since: API Level 14

View has requested the system UI (status bar) to be visible (the default).

Constant Value: 0 (0x00000000)


위와 같은 플레그가 있습니다.  

4.0 에서 사용 바뀌었다고 하네요. 


아무튼  해당 activity 의  아무 view나  



 TextView title = (TextView)findViewById(R.id.title);
 title.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);

       

        


이런식으로 호출해 주면  System Bar 가 숨겨 진답니다. 



그런데,  코드가 동작하는데 필요한 요소가 하나더 있는데요. 



AndroidManifest.xml 에  들어가는     


 <uses-sdk android:minSdkVersion="11" />


또는 


  <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11" />



minSdkVersion  또는 targetSdkVersion 값을  11 이상으로 하고, 

 title.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);


로 하거나 , 


minSdkVersion  또는 targetSdkVersion 값을  14 이상으로 하고, 

 title.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);


으로 해야만 동작을 하더군요. 



참고하세요!