This commit is contained in:
zlzw 2024-07-19 09:27:00 +08:00
parent 1cde41f2d0
commit e1fd4949b5

View File

@ -126,7 +126,7 @@ public class GiftWallMainTab2Fragment extends BaseFragment {
public Boolean invoke(View itemView, Integer index, Boolean select, Boolean fromUser) { public Boolean invoke(View itemView, Integer index, Boolean select, Boolean fromUser) {
//当需要选中itemView时, 触发的回调. //当需要选中itemView时, 触发的回调.
//返回true, 拦截库中的默认处理. //返回true, 拦截库中的默认处理.
return false; return index == (type - 1);
} }
}); });
dslTabLayoutConfig.setOnSelectViewChange(new Function4<View, List<? extends View>, Boolean, Boolean, Unit>() { dslTabLayoutConfig.setOnSelectViewChange(new Function4<View, List<? extends View>, Boolean, Boolean, Unit>() {