public final class SimpleTableHeaderAdapter extends TableHeaderAdapter
TableHeaderAdapter. This adapter will render the given header
Strings as TextView.| Constructor and Description |
|---|
SimpleTableHeaderAdapter(android.content.Context context,
int... headerStringResources) |
SimpleTableHeaderAdapter(android.content.Context context,
java.lang.String... headers)
Creates a new SimpleTableHeaderAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getHeaderView(int columnIndex,
android.view.ViewGroup parentView)
Method that gives the header views for the different columns.
|
void |
setGravity(int gravity)
Sets the gravity of the text inside the header cell.
|
void |
setPaddingBottom(int paddingBottom)
Sets the padding that will be used on the bottom side for all table headers.
|
void |
setPaddingLeft(int paddingLeft)
Sets the padding that will be used on the left side for all table headers.
|
void |
setPaddingRight(int paddingRight)
Sets the padding that will be used on the right side for all table headers.
|
void |
setPaddings(int left,
int top,
int right,
int bottom)
Sets the padding that will be used for all table headers.
|
void |
setPaddingTop(int paddingTop)
Sets the padding that will be used on the top side for all table headers.
|
void |
setTextColor(int textColor)
Sets the text color that will be used for all table headers.
|
void |
setTextSize(int textSize)
Sets the text size that will be used for all table headers.
|
void |
setTypeface(int typeface)
Sets the typeface that will be used for all table headers.
|
getColumnCount, getColumnModel, getContext, getCount, getLayoutInflater, getResources, getView, setColumnCount, setColumnModeladd, addAll, addAll, clear, createFromResource, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sortareAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverpublic SimpleTableHeaderAdapter(android.content.Context context,
java.lang.String... headers)
context - The context to use inside this TableHeaderAdapter.headers - The header labels that shall be rendered.public SimpleTableHeaderAdapter(android.content.Context context,
int... headerStringResources)
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 setGravity(int gravity)
gravity - The gravity of the text inside the header cell.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.public android.view.View getHeaderView(int columnIndex,
android.view.ViewGroup parentView)
TableHeaderAdaptergetHeaderView in class TableHeaderAdaptercolumnIndex - The index of the column to return the header view.parentView - The view to which the returned view will be added.