public final class SimpleTableDataAdapter extends TableDataAdapter<java.lang.String[]>
TableDataAdapter
that allows to display 2D-String-Arrays in a TableView
.Constructor and Description |
---|
SimpleTableDataAdapter(Context context,
java.util.List<java.lang.String[]> data) |
SimpleTableDataAdapter(Context context,
java.lang.String[][] data) |
Modifier and Type | Method and Description |
---|---|
View |
getCellView(int rowIndex,
int columnIndex,
ViewGroup parentView)
Method that gives the cell views for the different table cells.
|
void |
setPaddingBottom(int paddingBottom)
Sets the padding that will be used on the bottom side for all table cells.
|
void |
setPaddingLeft(int paddingLeft)
Sets the padding that will be used on the left side for all table cells.
|
void |
setPaddingRight(int paddingRight)
Sets the padding that will be used on the right side for all table cells.
|
void |
setPaddings(int left,
int top,
int right,
int bottom)
Sets the padding that will be used for all table cells.
|
void |
setPaddingTop(int paddingTop)
Sets the padding that will be used on the top side for all table cells.
|
void |
setTextColor(int textColor)
Sets the text color that will be used for all table cells.
|
void |
setTextSize(int textSize)
Sets the text size that will be used for all table cells.
|
void |
setTypeface(int typeface)
Sets the typeface that will be used for all table cells.
|
getColumnCount, getColumnModel, getColumnWeight, getColumnWeightSum, getContext, getData, getLayoutInflater, getResources, getRowData, getView, setColumnCount, setColumnModel, setColumnWeight, setRowBackgroundProvider
public SimpleTableDataAdapter(Context context, java.lang.String[][] data)
public SimpleTableDataAdapter(Context context, java.util.List<java.lang.String[]> data)
public View getCellView(int rowIndex, int columnIndex, ViewGroup parentView)
TableDataAdapter
getCellView
in class TableDataAdapter<java.lang.String[]>
rowIndex
- The index of the row to return the table cell view.columnIndex
- The index of the column to return the table cell view.parentView
- The view to which the returned view will be added.public void setPaddings(int left, int top, int right, int bottom)
left
- The padding on the left side.top
- The padding on the top side.right
- The padding on the right side.bottom
- The padding on the bottom side.public void setPaddingLeft(int paddingLeft)
paddingLeft
- The padding on the left side.public void setPaddingTop(int paddingTop)
paddingTop
- The padding on the top side.public void setPaddingRight(int paddingRight)
paddingRight
- The padding on the right side.public void setPaddingBottom(int paddingBottom)
paddingBottom
- The padding on the bottom side.public void setTextSize(int textSize)
textSize
- The text size that shall be used.public void setTypeface(int typeface)
typeface
- The type face that shall be used.public void setTextColor(int textColor)
textColor
- The text color that shall be used.