Just wondering if we can do something like this using android code (native app) or even a better method to handle multiple columns on a single screen. I have searched a lot but all I find is done through CSS & JS rather than android code
Asked
Active
Viewed 75 times
2 Answers
1
<LinearLayout orientation="horizontal">
<LinearLayout orientation="vertical>
<!-- first column fixed -->
</LinearLayout>
<HorizontalScrollView>
<LinearLayout orientation="horizontal">
<LinearLayout orientation="vertical>
<!-- second column -->
</LinearLayout>
<LinearLayout orientation="vertical>
<!-- third column -->
</LinearLayout>
<!-- etc -->
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
You get the gist.

Eugen Pechanec
- 37,669
- 7
- 103
- 124
0
Why don't you try to do this with HorizontalScrollView and items in it that are single columns (each column could be a single LinearLayout with other views in it)?

Gabriella Angelova
- 2,985
- 1
- 17
- 30
-
I tried doing that but there are 2 issues. Firstly left header also moves. Secondly each individual row scrolls rather than the table as a whole – Haseeb Jadoon May 19 '15 at 18:52
-
I mean one HorizontalScrollView with many elements, not a single scroll view for every column – Gabriella Angelova May 19 '15 at 19:00