public final class TableDataRowBackgroundProviders
extends java.lang.Object
TableDataRowBackgroundProviders.| Modifier and Type | Method and Description |
|---|---|
static TableDataRowBackgroundProvider<java.lang.Object> |
alternatingRowColors(int colorEvenRows,
int colorOddRows)
Gives an implementation of
TableDataRowBackgroundProvider that will return alternately the two
given colors. |
static TableDataRowBackgroundProvider<java.lang.Object> |
alternatingRowDrawables(android.graphics.drawable.Drawable drawableEvenRows,
android.graphics.drawable.Drawable drawableOddRows)
Gives an implementation of
TableDataRowBackgroundProvider that will return alternately the two
given colors. |
static TableDataRowBackgroundProvider<java.lang.Object> |
similarRowColor(int color)
Gives an implementation of
TableDataRowBackgroundProvider that will return the given color for each row. |
static TableDataRowBackgroundProvider<java.lang.Object> |
similarRowDrawable(android.graphics.drawable.Drawable drawable)
Gives an implementation of
TableDataRowBackgroundProvider that will return the given color for each row. |
public static TableDataRowBackgroundProvider<java.lang.Object> alternatingRowColors(int colorEvenRows, int colorOddRows)
TableDataRowBackgroundProvider that will return alternately the two
given colors.colorEvenRows - The color that will be returned for rows with an even index.colorOddRows - The color that will be returned for rows with an odd index.TableDataRowBackgroundProvider with the described behaviour.public static TableDataRowBackgroundProvider<java.lang.Object> alternatingRowDrawables(android.graphics.drawable.Drawable drawableEvenRows, android.graphics.drawable.Drawable drawableOddRows)
TableDataRowBackgroundProvider that will return alternately the two
given colors.drawableEvenRows - The Drawable that will be returned for rows with an even index.drawableOddRows - The Drawable that will be returned for rows with an odd index.TableDataRowBackgroundProvider with the described behaviour.public static TableDataRowBackgroundProvider<java.lang.Object> similarRowColor(int color)
TableDataRowBackgroundProvider that will return the given color for each row.color - The color that will be used for each row.TableDataRowBackgroundProvider with the described behaviour.public static TableDataRowBackgroundProvider<java.lang.Object> similarRowDrawable(android.graphics.drawable.Drawable drawable)
TableDataRowBackgroundProvider that will return the given color for each row.drawable - The Drawable that will be used for each row.TableDataRowBackgroundProvider with the described behaviour.