-1

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

Haseeb Jadoon
  • 450
  • 6
  • 20

2 Answers2

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