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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -