Implementing the game activity layout

So far, we have successfully created the layout for main activity. Before we conclude this chapter, it is imperative we create the layout for GameActivity as well. Go ahead and open activity_game.xml and add the following code to it:

<?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"    android:layout_width="match_parent"    android:layout_height="match_parent"    tools:context="com.mydomain.tetris.GameActivity">  <LinearLayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:orientation="horizontal" ...

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.