listview - android how to put heading for an BaseAdpater -
i wanna put heading baseadapter. like attached screenshot
this android app pulse news reader. want know how made front page. how put headings every image adapter. concept used here. plz tell me sample example. thank you
there 2 things think about, data , layouts.
the list that's being displayed array of items each item represents feed. feed represents array of articles.
think of objects this
feed
- title (
string
) - articles (
list<article>
)
article
- thumbnail (
image
) - headline (
string
)
your adapter going bound list<feed>
, , layout file use display "feed" item going have vertical linearlayout displays title , below horizontal linearlayout containing articles array (using layout_weight make each item hold equal amount of horizontal space)
Comments
Post a Comment