public abstract class BaseCellBackgroundFormat<T> extends java.lang.Object implements ICellBackgroundFormat<T>
| Constructor and Description |
|---|
BaseCellBackgroundFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackground(android.graphics.Canvas canvas,
android.graphics.Rect rect,
T t,
android.graphics.Paint paint)
绘制背景
|
abstract int |
getBackGroundColor(T t)
获取背景颜色
|
int |
getTextColor(T t)
默认字体颜色不跟随背景变化,
当有需要多种字体颜色,请重写该方法
|
public void drawBackground(android.graphics.Canvas canvas,
android.graphics.Rect rect,
T t,
android.graphics.Paint paint)
ICellBackgroundFormatdrawBackground in interface ICellBackgroundFormat<T>public abstract int getBackGroundColor(T t)
public int getTextColor(T t)
getTextColor in interface ICellBackgroundFormat<T>t -