NewbieGuide icon indicating copy to clipboard operation
NewbieGuide copied to clipboard

NewbieGuide +ImmersionBar 位置错乱

Open jyjiawohao opened this issue 3 years ago • 2 comments

NewbieGuide +ImmersionBar 位置错乱 高亮区域偏离位置 到下面了

jyjiawohao avatar Mar 26 '21 06:03 jyjiawohao

这个问题解决了吗?

mingdeweidao avatar Apr 26 '21 16:04 mingdeweidao

RectF减去状态栏高度即可 Rect globalRect = new Rect(); viewBinding.adoption.getGlobalVisibleRect(globalRect); int statusBarHeight = BarUtils.getStatusBarHeight();//获取状态栏高度 NewbieGuide .with(mContext) .setLabel("Guide1") .alwaysShow(true) .addGuidePage(GuidePage.newInstance() .addHighLightWithOptions(new RectF(globalRect.left, globalRect.top - statusBarHeight, globalRect.right, globalRect.bottom - statusBarHeight), options)) .show();

OneGreenHand avatar Jun 29 '22 10:06 OneGreenHand