package com.duqing.missions.ui.main.hall.popup; import android.widget.CompoundButton; import com.duqing.missions.base.adapter.BaseAdapter; import com.duqing.missions.databinding.ItemClassifyBinding; /** * Created by Administrator on 2021/11/5 0005. */ public class HallClassifyAdapter extends BaseAdapter { @Override protected void bindView(ViewBindHolder holder, String data, int position) { holder.binding.check.setText(data); holder.binding.check.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked){ buttonView.setEnabled(false); }else{ buttonView.setEnabled(true); } } }); } }