android - Add a header/footer in a listview in xml -
i know how add header or footer in java, wondering if add straight in xml. wouldn't want simulate this, add footer or header!
no, don't think possible. based on listview source code there overscrollheader/overscrollfooter available xml attributes. these attributes accept drawables.
if don't want use tricks layouts above/below listview. can extend listview , implement own footer , header support in customized view. not hard because of footer , header implemented. have add xml attributes parsing in customized view's constructor.
Comments
Post a Comment