listview - Android first row with checkbox and the rest without -


i have listview 4 rows. i'd first row has checkbox other rows keep plain clickable rows. possible or need create 2 listviews , put them underneath each other , make first listview custom adapter?

or there better way this?

summary: i'd have listview first row clicked , checkbox changes states , other rows keep acting rows. best way making 2 listview 1 custom view , normal one? or possible in 1 listview?

create custom adapter. in getview() method check

if(position == 0) {     //add checkbox } else {     //without checkbox } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -