<Kotlin || How to adjust Gridlayout width and heig...
# stackoverflow
u
Kotlin || How to adjust Gridlayout width and height parameters programatically for all screen sizes? I have a gridlayout with fixed height and weight paramaters. When screensize change automatically ıts getting bigger or smaller. Iv tried all methods but not succeed. How to fix? My code ; private fun loadBoard() { for (i in boardCells.indices) { for (j in boardCells.indices) { boardCells[i][j] = ImageView(this) boardCells[i][j]?.layoutParams = GridLayout.LayoutParams().apply { rowSpec = GridLayout.spec(i) columnSpec =...