public final class SimpleTableHeaderAdapter extends TableHeaderAdapter
TableHeaderAdapter
. This adapter will render the given header
Strings as TextView
.Constructor and Description |
---|
SimpleTableHeaderAdapter(Context context,
java.lang.String... headers)
Creates a new SimpleTableHeaderAdapter.
|
Modifier and Type | Method and Description |
---|---|
View |
getHeaderView(int columnIndex,
ViewGroup parentView)
Method that gives the header views for the different columns.
|
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.
|
getContext, getLayoutInflater, getResources
public SimpleTableHeaderAdapter(Context context, java.lang.String... headers)
context
- The context to use inside this TableHeaderAdapter
.headers
- The header labels that shall be rendered.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.public View getHeaderView(int columnIndex, ViewGroup parentView)
TableHeaderAdapter
getHeaderView
in class TableHeaderAdapter
columnIndex
- The index of the column to return the header view.parentView
- The view to which the returned view will be added.