How do I dim the system bar in Android 3.0 (Honeycomb)?

Try using the following code:

View v = findViewById(R.id.myview);
v.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);

Leave a Comment