how to add an headerview at every single row

You must Login before you can answer or comment on any questions.

Hi, in my android app i have a tableview, now i want to attach an header view with a label at every single row of my tableview, how can i do it?

1 Answer

You could use custom views to accomplish this. Build a custom view that looks like a header (maybe it uses different background color, fonts in its labels, etc.). Build another custom view for your data rows. As you construct rows for the tableview, use the two different custom row views to achieve the desired effect. More on custom rows.

Your Answer

Think you can help? Login to answer this question!