Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: sky/shell/org/domokit/sky/shell/SkyActivity.java

Issue 1010493007: Make the status bar translucent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/theme/view-configuration.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/org/domokit/sky/shell/SkyActivity.java
diff --git a/sky/shell/org/domokit/sky/shell/SkyActivity.java b/sky/shell/org/domokit/sky/shell/SkyActivity.java
index b0eb9c066252657d3df97ce714769302014ae9a6..e37114d64835c92c96afc130d1e7075cc48bccd6 100644
--- a/sky/shell/org/domokit/sky/shell/SkyActivity.java
+++ b/sky/shell/org/domokit/sky/shell/SkyActivity.java
@@ -6,6 +6,8 @@ package org.domokit.sky.shell;
import android.app.Activity;
import android.os.Bundle;
+import android.view.View;
+import android.view.WindowManager;
/**
* Base class for activities that use Sky.
@@ -19,6 +21,14 @@ public class SkyActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+
+ getWindow().addFlags(
+ WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
+ getWindow().setStatusBarColor(0x40000000);
+ getWindow().getDecorView().setSystemUiVisibility(
+ View.SYSTEM_UI_FLAG_LAYOUT_STABLE
+ | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
+
SkyMain.ensureInitialized(getApplicationContext());
mView = new PlatformView(this);
setContentView(mView);
« no previous file with comments | « sky/framework/theme/view-configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698