TableLayout sudokuGrid = (TableLayout) findViewById(R.id.sudokuGrid) ![]() ![]() SetContentView(R.layout.solver_principal) Īnd finally I have my activity where I programmatically inflate the cell layout 81 times into the table void onCreate(Bundle savedInstanceState) In here I want to insert the previous layout 81 times forming a 9x9 grid. I then have my principal layout (just a table layout). xml for completeness in case somebody wants to run it. The important thing I need feedback on is just the last piece of code (the activity one). This consists of the possible pencil marks someone ussually uses. xml file that represents a single square in the grid. I am generating a 9x9 grid on which I will play sudoku later by setting click listeners to each square on the grid.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |