From f0a70a65c64bbd7b91d30deafd5deb71a88e71a8 Mon Sep 17 00:00:00 2001 From: puyang1017 Date: Sat, 2 Feb 2019 10:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81=E6=A0=8F?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/android/puy/puymvpjava/mvp/XActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/XActivity.java b/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/XActivity.java index 498f9e4..ece23d4 100644 --- a/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/XActivity.java +++ b/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/XActivity.java @@ -150,6 +150,14 @@ public void initStatusBar(int id) { mImmersionBar.init(); } + public void initStatusBar(int id, boolean statusBarDark) { + mImmersionBar = ImmersionBar.with(this); + mImmersionBar.titleBar(id); + mImmersionBar.statusBarDarkFont(statusBarDark); + mImmersionBar.keyboardEnable(true); + mImmersionBar.init(); + } + public void setMaterialRipple(int color,View ...views){ for (View view:views){ MaterialRippleLayout.on(view)