“setView must have been called” - Custom Class extending button
So I've got a 12 x 9 grid of "buttons" called "tiles". Tile.java extends the widget "Button". I've got an issue right now though, where I'm trying to get the button to display a toast that recalls the ID of the button pushed. The grid is added dynamically and I want it to stay that way. Here's the code from GameBoardActivity.java: This makes the 12x9 grid of "tiles" and adds a listener for each. public void gridRowButtons(int iterations){ final Tile[] gridSpaces = new Tile[12]; LinearLayout.LayoutParams buttonParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH