I have implemented a list view with static header (the header is not scrolli开发者_Go百科ng with listview), using the "LinearLayout + ListView" approach. In general, this list view works like a table, the header is the LinearLayout and the table body is the ListView. I can insert new column and its corresponding data into the list view. The reason I implement it this way is that I need to let user share some data throught the context menu of the ListView. Both the header name and data could has various length, how could I align the header name with its underlying data?
Any thought are appreciated.
精彩评论