SimpleAdaper 作为适配器时,支持三种类型的View, 而且是按照如下顺序进行匹配的
1.继承Checkable接口
2.TextView
3.ImageView
CompoundButton 声明如下:
public abstract class CompoundButton extends Button implements Checkable
可见CompoundButton是实现了Checkable接口的
SimpleAdaper 作为适配器时,支持三种类型的View, 而且是按照如下顺序进行匹配的
1.继承Checkable接口
2.TextView
3.ImageView
CompoundButton 声明如下:
public abstract class CompoundButton extends Button implements Checkable
可见CompoundButton是实现了Checkable接口的