设置tablayou的中一个不能点击

来源:互联网 发布:python自动化运维 pdf 编辑:程序博客网 时间:2024/06/06 08:25
  LinearLayout tabStrip = (LinearLayout) detailTab.getChildAt(0);//没有数据的设置为不可点击,颜色边灰色//        View tabView = tabStrip.getChildAt(3);//        if (tabView != null) {//            tabView.setBackgroundColor(ActivityCompat.getColor(this, R.color.gray));//            tabView.setClickable(false);//        }

原创粉丝点击