mirror of https://github.com/NekoX-Dev/NekoX.git
21 lines
526 B
Java
21 lines
526 B
Java
package tw.nekomimi.nekogram.config.cell;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
import tw.nekomimi.nekogram.config.CellGroup;
|
|
|
|
public abstract class AbstractConfigCell {
|
|
// can not be null!
|
|
protected CellGroup cellGroup;
|
|
|
|
// called by CellGroup.java
|
|
public void bindCellGroup(CellGroup cellGroup) {
|
|
this.cellGroup = cellGroup;
|
|
}
|
|
|
|
public abstract int getType();
|
|
|
|
public abstract boolean isEnabled();
|
|
|
|
public abstract void onBindViewHolder(RecyclerView.ViewHolder holder);
|
|
} |