title: How to display two-dimensional array in grid view with Kotlin?
body: <p>I want to represent a two-dimensional array with some data in a grid, like a chessboard.
  Lets say we have this 2d array:</p>
  <pre><code>val nums = arrayOf(
      arrayOf(0, 0, 0, 0, 1),
      arrayOf(0, 0, 0, 1, 1),
      arrayOf(0, 0, 1, 1, 1),
      arrayOf(0, 0, 0, 1, 1),
      arrayOf(0, 0, 0, 0, 1)
  )
  </code></pre>
  <p>My question is how can I display it with grid view and what would be the best approach. I will be glad to see some examples as well.
  Im still new to Kotlin and some things are kinda confusing. I tried looking for similar solution, but nothing closer to my problem.</p>