Try using the following code:
View v = findViewById(R.id.myview);
v.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
More Related Contents:
- ActionBar text color
- Animate the transition between fragments
- Why fragments, and when to use fragments instead of activities?
- Android Fragments and animation
- How do I add a Fragment to an Activity with a programmatically created content view
- MapView in a Fragment (Honeycomb)
- How to add a Dropdown item on the action bar
- Is there a way to hide the system bar in Android 3.0? It’s an internal device and I’m managing navigation
- Was PreferenceFragment intentionally excluded from the compatibility package?
- Changing overflow icon in the action bar
- Is it possible to display icons in a PopupMenu?
- Fragments onResume from back stack
- SearchView’s OnCloseListener doesn’t work
- How to use Holo.Light theme, and fall back to ‘Light’ on pre-honeycomb devices?
- HW accelerated activity – how to get OpenGL texture size limit?
- Is there a way to get references for all currently active fragments in an Activity?
- How can I execute something just once per application start?
- Android replace the current fragment with another fragment
- ActionBar background image
- Custom Translucent Android ActionBar
- How can I customize the Action Mode’s color and text?
- Technical details of Android Garbage Collector
- Disable Home Button in Android ICS (4.0)
- Android: How to change the ActionBar “Home” Icon to be something other than the app icon?
- How to set a Fragment tag by code?
- Android GridView with categories?
- Displaying icon for menu items of Action Bar in Honeycomb Android 3.0
- How to add submenu items to ActionBar action in code?
- Styling EditText view with shape drawable to look similar to new holographic theme for Android < 3.0
- Font size too large to fit in cache