am 247fe6d4: Remove Toggle System UI options from Support7Demos

* commit '247fe6d4993c069feb0176043e41697144d520df':
  Remove Toggle System UI options from Support7Demos
This commit is contained in:
Chris Banes
2013-05-29 01:24:12 -07:00
committed by Android Git Automerger
3 changed files with 1 additions and 16 deletions

View File

@@ -51,9 +51,5 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/toggle_visibility" />
<Button android:id="@+id/toggle_system_ui"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/toggle_system_ui" />
</LinearLayout>
</ScrollView>

View File

@@ -70,7 +70,6 @@
<string name="toggle_navigation">Navigation</string>
<string name="cycle_custom_gravity">Cycle Custom View Gravity</string>
<string name="toggle_visibility">Toggle Visibility</string>
<string name="toggle_system_ui">Toggle System UI</string>
<string name="display_options_custom_button">Custom View!</string>
<string name="display_options_menu_item">Menu Item</string>

View File

@@ -22,9 +22,9 @@ import android.support.v7.app.ActionBar.Tab;
import android.support.v7.app.ActionBarActivity;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import com.example.android.supportv7.R;
/**
@@ -48,7 +48,6 @@ public class ActionBarDisplayOptions extends ActionBarActivity
findViewById(R.id.toggle_navigation).setOnClickListener(this);
findViewById(R.id.cycle_custom_gravity).setOnClickListener(this);
findViewById(R.id.toggle_visibility).setOnClickListener(this);
findViewById(R.id.toggle_system_ui).setOnClickListener(this);
// Configure several action bar elements that will be toggled by display options.
mCustomView = getLayoutInflater().inflate(R.layout.action_bar_display_options_custom, null);
@@ -125,15 +124,6 @@ public class ActionBarDisplayOptions extends ActionBarActivity
bar.show();
}
return;
case R.id.toggle_system_ui:
if ((getWindow().getDecorView().getSystemUiVisibility()
& View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
getWindow().getDecorView().setSystemUiVisibility(0);
} else {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_FULLSCREEN);
}
return;
}
int change = bar.getDisplayOptions() ^ flags;