huburt-Hu / NewbieGuide

Android 快速实现新手引导层的库,通过简洁链式调用,一行代码实现引导层的显示
Apache License 2.0
3.55k stars 519 forks source link

全面屏手机高亮位置偏差 #122

Closed hnty545 closed 5 years ago

hnty545 commented 5 years ago

2.4.3,在有实体键屏幕MI6上没问题,在华为荣耀V20以及另一台全面屏手机上都是向上偏差,截图如下: image 代码如下: builder.addGuidePage(GuidePage.newInstance() .addHighLight(layout, new RelativeGuide(R.layout.gathering_group_guide_mask, Gravity.TOP) { @Override public void onLayoutInflated(View view, Controller controller) { ImageView iv = view.findViewById(R.id.iv_mask); if (iv != null) { GlideApp.with(MixGatheringGroupActivity.this) .load(fb.getRes_url()) .into(iv); } } }) .setBackgroundColor(maskColor));

hnty545 commented 5 years ago

是因为引导层show了之后,界面又动了所以位置不对,这种情况有解决办法吗

hnty545 commented 5 years ago

通过预先留出高度解决了