自学内容网 自学内容网

Android 13 动态显示隐藏 HomeButton,RecentsButton

com.android.launcher3.taskbar.NavbarButtonsViewController.initButtons

    mEnabledValue状态

    <T> StatePropertyHolder(T target, IntPredicate enabledCondition,
            Property<T, Float> property, float enabledValue, float disabledValue) {
        mEnableCondition = enabledCondition;
        mEnabledValue = enabledValue;
        mDisabledValue = disabledValue;
        mAnimator = ObjectAnimator.ofFloat(target, property, enabledValue, disabledValue);
    }


// 初始化NavButton
private void initButtons(ViewGroup navContainer, ViewGroup endContainer,
        TaskbarNavButtonController navButtonController) {

    mBackButton = addButton(R.drawable.ic_sysbar_back, BUTTON_BACK,
            mNavButtonContainer, mControllers.navB

原文地址:https://blog.csdn.net/Sqq_yj/article/details/145241931

免责声明:本站文章内容转载自网络资源,如侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!