设置tablayou的中一个不能点击

xiaoxiao2021-02-28  96

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); // }
转载请注明原文地址: https://www.6miu.com/read-50728.html

最新回复(0)