public class HeaderFooterGridView
A GridView that supports adding header rows in a very similar way to android.widget.ListView. See HeaderFooterGridView.addHeaderView
| 构造器和说明 |
|---|
HeaderFooterGridView() |
HeaderFooterGridView() |
HeaderFooterGridView() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFooterView() |
void |
addFooterView() |
void |
addHeaderView()
Add a fixed view to appear at the top of the grid. If addHeaderView is called more than once, the views will appear in the order they were added. Views added using this call can take focus if they want. NOTE: Call this before calling setAdapter. This is so HeaderGridView can wrap the supplied cursor with one that will also account for header views.
|
void |
addHeaderView()
Add a fixed view to appear at the top of the grid. If addHeaderView is called more than once, the views will appear in the order they were added. Views added using this call can take focus if they want. NOTE: Call this before calling setAdapter. This is so HeaderGridView can wrap the supplied cursor with one that will also account for header views.
|
int |
getFooterViewCount() |
int |
getHeaderViewCount() |
void |
onMeasure() |
boolean |
removeFooterView() |
boolean |
removeHeaderView()
Removes a previously-added header view.
|
void |
setAdapter() |
public HeaderFooterGridView()
public HeaderFooterGridView()
public HeaderFooterGridView()
public void onMeasure()
public void addHeaderView()
Add a fixed view to appear at the top of the grid. If addHeaderView is called more than once, the views will appear in the order they were added. Views added using this call can take focus if they want.
NOTE: Call this before calling setAdapter. This is so HeaderGridView can wrap the supplied cursor with one that will also account for header views.
public void addHeaderView()
Add a fixed view to appear at the top of the grid. If addHeaderView is called more than once, the views will appear in the order they were added. Views added using this call can take focus if they want.
NOTE: Call this before calling setAdapter. This is so HeaderGridView can wrap the supplied cursor with one that will also account for header views.
public void addFooterView()
public void addFooterView()
public int getHeaderViewCount()
public int getFooterViewCount()
public boolean removeHeaderView()
Removes a previously-added header view.
public boolean removeFooterView()
public void setAdapter()