touchlane / gridpad-android

GridPad is a Jetpack Compose library that allows you to place UI elements in a predefined grid, manage spans in two dimensions, have flexible controls to manage row and column sizes.
MIT License
63 stars 5 forks source link

gridpad with only columns available #18

Closed hilmanshini closed 1 year ago

hilmanshini commented 1 year ago

is there any possibility to provide the feature to make the gridpad only receive the column parameter? (as the row would be unknown count)

landarskiy commented 1 year ago

hilmanshini

Hi! Thank you for your question. Can you share with me a case you try to solve? Maybe there is another way to chive your goal. And what’s your expectations about layout behavior? The thing here in previous versions the following syntax was acceptable:

item(row = 1) {
        // cell content
}

But API above was deprecated and removed in new versions due to unclear behavior (because of the complex rules of implicit cell placement with spans > 1)

landarskiy commented 1 year ago

I'm closing this discussion due to lack of activity. Please reopen it if you still have questions.