Closed hnty545 closed 5 years ago
2.4.3,在有实体键屏幕MI6上没问题,在华为荣耀V20以及另一台全面屏手机上都是向上偏差,截图如下: 代码如下: 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));
是因为引导层show了之后,界面又动了所以位置不对,这种情况有解决办法吗
通过预先留出高度解决了
2.4.3,在有实体键屏幕MI6上没问题,在华为荣耀V20以及另一台全面屏手机上都是向上偏差,截图如下: 代码如下: 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));