开发者

How do I assign column headers for the Android GridView?

开发者 https://www.devze.com 2023-02-17 07:42 出处:网络
I am developing a simple application for Androidin which I am using a gridvie开发者_如何学Cw. In ASP.NET, we use header text=\"\". How can I assign a header for each column in the gridview on the And

I am developing a simple application for Android in which I am using a gridvie开发者_如何学Cw.

In ASP.NET, we use header text="". How can I assign a header for each column in the gridview on the Android platform?


A GridView does not have columns. It is meant to arrange a flat (without columns) array of items two-dimensionally across the screen. You should use a TableLayout, which is intented to lay out columned rows.

When you use a TableLayout, you can add a header row as your first row and then add your data rows after that. There isn't a distinction between the two.

0

精彩评论

暂无评论...
验证码 换一张
取 消