public final class SimpleTableDataAdapter extends TableDataAdapter<java.lang.String[]>
TableDataAdapter that allows to display 2D-String-Arrays in a TableView.| Constructor and Description |
|---|
SimpleTableDataAdapter(android.content.Context context,
java.util.List<java.lang.String[]> data) |
SimpleTableDataAdapter(android.content.Context context,
java.lang.String[][] data) |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getCellView(int rowIndex,
int columnIndex,
android.view.ViewGroup parentView)
Method that gives the cell views for the different table cells.
|
void |
setGravity(int gravity)
Sets the gravity of the text inside the data cell.
|
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.
|
getColumnModel, getContext, getData, getLayoutInflater, getResources, getRowData, getView, setColumnModel, setRowBackgroundProvideradd, addAll, addAll, clear, createFromResource, getCount, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sortareAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverpublic SimpleTableDataAdapter(android.content.Context context,
java.lang.String[][] data)
public SimpleTableDataAdapter(android.content.Context context,
java.util.List<java.lang.String[]> data)
public android.view.View getCellView(int rowIndex,
int columnIndex,
android.view.ViewGroup parentView)
TableDataAdaptergetCellView 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 setGravity(int gravity)
gravity - Sets the gravity of the text inside the data cell.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.