NewbieGuide
NewbieGuide copied to clipboard
NewbieGuide +ImmersionBar 位置错乱
NewbieGuide +ImmersionBar 位置错乱 高亮区域偏离位置 到下面了
这个问题解决了吗?
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();