From d71ec6347add546f1c3ed315139e0053c73066be Mon Sep 17 00:00:00 2001 From: Manu Cornet Date: Mon, 14 Nov 2016 09:49:17 -0800 Subject: [PATCH] 2D recents: full screen view and semi-transparent dark background This matches the newest mocks better than the previous version. Bug: 32101881 Test: Locally on local Ryu device Change-Id: I85769215a48b7a4f1e7b52bd7572eb48ca333471 --- packages/SystemUI/res/layout-sw600dp/recents_grid.xml | 6 ++++-- .../android/systemui/recents/grid/RecentsGridActivity.java | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/layout-sw600dp/recents_grid.xml b/packages/SystemUI/res/layout-sw600dp/recents_grid.xml index c8b4fd0b70a5e..cff770ae049ab 100644 --- a/packages/SystemUI/res/layout-sw600dp/recents_grid.xml +++ b/packages/SystemUI/res/layout-sw600dp/recents_grid.xml @@ -16,8 +16,11 @@ + android:id="@+id/recents_container" + android:background="#99000000"> \ No newline at end of file diff --git a/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java b/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java index e804b52b5a8ad..e1e654d58be75 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java +++ b/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java @@ -27,6 +27,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewTreeObserver; +import android.view.WindowManager; import android.widget.FrameLayout; import android.widget.LinearLayout; import android.widget.TextView; @@ -94,6 +95,11 @@ public class RecentsGridActivity extends Activity implements ViewTreeObserver.On mTouchExplorationEnabled = ssp.isTouchExplorationEnabled(); mRecentsView = (FrameLayout) findViewById(R.id.recents_view); + mRecentsView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | + View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | + View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); + getWindow().getAttributes().privateFlags |= + WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY; LinearLayout recentsContainer = (LinearLayout) findViewById(R.id.recents_container); mEmptyView = (TextView) mInflater.inflate(R.layout.recents_empty, recentsContainer, false); mClearAllButton = findViewById(R.id.button);