GithubHelp home page GithubHelp logo

Comments (4)

AriesHoo avatar AriesHoo commented on May 26, 2024

这个问题,我知道的是个BUG,建议先关掉虚拟导航条的控制。后期我修改后再通知你,

from fastlib.

MartinQAQ avatar MartinQAQ commented on May 26, 2024

好的。谢谢

from fastlib.

ChenPengBo avatar ChenPengBo commented on May 26, 2024

请问各位大神有没有解决的思路不?我的APP在红米5plus也会出现相应问题,但有的手机又正常

from fastlib.

AriesHoo avatar AriesHoo commented on May 26, 2024

/**
* {@link FastLifecycleCallbacks#onActivityStarted(Activity)}
*
* @param activity
* @param helper
*/
@OverRide
public boolean setNavigationBar(Activity activity, NavigationViewHelper helper, View bottomView) {
//其它默认属性请参考FastLifecycleCallbacks
helper.setLogEnable(BuildConfig.DEBUG)
.setTransEnable(isTrans(activity))
.setPlusNavigationViewEnable(isTrans(activity))
.setBottomView(PicturePreviewActivity.class.isAssignableFrom(activity.getClass()) ?
FindViewUtil.getTargetView(bottomView, R.id.select_bar_layout) : bottomView)
.setNavigationViewColor(Color.argb(isTrans(activity) ? 0 : 102, 0, 0, 0))
.setNavigationLayoutColor(Color.WHITE);

    activity.getWindow().getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
        @Override
        public void onGlobalLayout() {
            LoggerManager.i(TAG, "isNavigationBarVisible:" + com.aries.library.fast.demo.util.NavigationBarUtil.isNavigationBarVisible(activity) + ";checkDeviceHasNavigationBar:" +
                    com.aries.library.fast.demo.util.NavigationBarUtil.checkDeviceHasNavigationBar(activity) +
                    ";getNavigationBarHeight:" + com.aries.library.fast.demo.util.NavigationBarUtil.getNavigationBarHeight(activity) + ";getSystemUiVisibility:" + activity.getWindow().getDecorView().getSystemUiVisibility());
        }
    });
    return isControlNavigation();
}

在这个回调中如是出现问题的手机型号筛选出来返回false,目前就这种方式可以规避,我也在尝试找根除的方法,有解决方案及时通知

from fastlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.