From 67f0a65b463accbb0a398c3b7af773b0fb002d00 Mon Sep 17 00:00:00 2001 From: leon Date: Wed, 8 Jan 2020 14:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E5=9C=A8an?= =?UTF-8?q?droid=20studio=E6=B8=B2=E6=9F=93=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/wuhenzhizao/titlebar/widget/CommonTitleBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/wuhenzhizao/titlebar/widget/CommonTitleBar.java b/library/src/main/java/com/wuhenzhizao/titlebar/widget/CommonTitleBar.java index 407efa2..2196d78 100755 --- a/library/src/main/java/com/wuhenzhizao/titlebar/widget/CommonTitleBar.java +++ b/library/src/main/java/com/wuhenzhizao/titlebar/widget/CommonTitleBar.java @@ -264,7 +264,7 @@ private void initGlobalViews(Context context) { boolean transparentStatusBar = StatusBarUtils.supportTransparentStatusBar(); // 构建标题栏填充视图 - if (fillStatusBar && transparentStatusBar) { + if (fillStatusBar && transparentStatusBar && !isInEditMode()) { int statusBarHeight = StatusBarUtils.getStatusBarHeight(context); viewStatusBarFill = new View(context); viewStatusBarFill.setId(StatusBarUtils.generateViewId());