Administrator
2021-11-06 9178a17fda334ae4fb1df7ddefcdae9bbc40400b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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<ItemClassifyBinding,String> {
 
 
    @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);
                }
            }
        });
    }
}