Android GridView load items vertically

后端 未结 7 1432
离开以前
离开以前 2021-02-05 07:16

Is it possible to load items in GridView with vertical orientation? I mean...

Normal situation - 3 columns

\

7条回答
  •  难免孤独
    2021-02-05 07:55

    Please clarify, say you have a Grid like this

    1  4  7
    2  5  8
    3  6  9
    

    now if you scroll it down vertically, it should basically be like this??

    2  5  8
    3  6  9
    4  7  10
    

    In this case,

    • items 4 and 7 are not recycled, in fact they are moved to a new position
    • item 1 is to be recycled
    • only item 10 is introduced

    Clearly, this is not how a normal ListView/GridView works where a row is recycled at a time, AFAIK you will need to customise GridView to get this functionality.

提交回复
热议问题