当我向后端提出请求时,我想阻止我的底部navigationview,相同活动的工作 -> 4片段
这将帮助您禁用单击底部navigationView
bottomView.setEnabled(false);
bottomView.setFocusable(false);
bottomView.setFocusableInTouchMode(false);
bottomView.setClickable(false);
bottomView.setContextClickable(false);
bottomView.setOnClickListener(null);
,当您希望它们活跃时,您可以再次启用它。
bottomView.setEnabled(true);
bottomView.setFocusable(true);
bottomView.setFocusableInTouchMode(true);
bottomView.setClickable(true);
bottomView.setContextClickable(true);
bottomView.setOnClickListener(this);