To make the layout of Android dynamic,

Asked 2 years ago, Updated 2 years ago, 26 views

We're going to make the layout as follows dynamic I used to draw it dynamically using gridlayout But for gridlayout, you draw it horizontally, not vertically.

I want to draw a vertical line first, and then a vertical line Is there a layout available in this way? I don't know if this is possible for tableLayout (I searched but couldn't find the answer)

Thank you so much for your always good advice^

android

2022-09-22 18:10

1 Answers

You can use StagedGridLayoutManager from RecyclerView. Various sizes of row implementation are possible, such as Pinterest. However, if the row shape remains the same in a constant position cycle, you can also implement the list by branching each type in getItemVIewType()


2022-09-22 18:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.