RATTLESNAKE-VIPER / GLGooglePlusLikeLayout

256 stars 30 forks source link

Manually select the cell size template #3

Open wsnnn opened 11 years ago

wsnnn commented 11 years ago

A very useful layout, thank you!

But sometimes with one and the same size, is derived the cell of smaller size.

Is it possible to manually select the cell size template? For example, small square, a wide horizontal, small vertical, medium vertical, large vertical, large square?

RATTLESNAKE-VIPER commented 11 years ago

Yes its somewhat possible, If you want fixed template for your layout you have to set the size of the cell accordingly. But the layout can resize the cell in some scenarios like if it finds that it cannot complete the row (to maintain the row linearity) else it will be like waterflow style layout, so you need to do some tweak in the layout itself if it doesn't work.

wsnnn commented 11 years ago

I have already made such a template, it remains only to understand how to change the logic so that the cell, which is not the right size does not decrease, and may be increased or moved up or down.

It is still unknown why, but with any sizes does not want to display a horizontal cell, which occupies entire width.