Android table with a fixed header?

How to create a TableLayout that he had a fixed header row and the body of the table could scroll vertically.

Attempts to solve:
You can make 2 tables one for header and another for the body but then they will have different width columns. And runtime is necessary that the width change at the table with the body in my opinion is a good decision. Nothing more to change not googled.

What you need:
Table in which the header fixed and the body skalitsa. The width of the columns title and body are the same.
June 10th 19 at 16:21
1 answer
June 10th 19 at 16:23
Solution
Figured out have to make such a structure
<tablelayout>
 <tablerow>This is header</tablerow>
<scrollview>
<linearlayout>
 <tablerow>item 1</tablerow>
 <tablerow>item 2</tablerow>
</linearlayout>
</scrollview>
</tablelayout>

Find more questions by tags Android