Finishing up GameActivity

So far, you have successfully implemented the views, handlers, helper functions, classes, and models necessary to put the Tetris game together. Now we are going to finish up the work we started by putting it all together in GameActivity. The first thing on our agenda is to add the newly created tetris view to the game activity's layout. We can easily add TetrisView as a child element anywhere within a layout file by utilizing the <com.mydomain.tetris.views.TetrisView> layout tag:

<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools" ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.