Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kotlin Programming By Example

You're reading from   Kotlin Programming By Example Build real-world Android and web applications the Kotlin way

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788474542
Length 500 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Iyanu Adelekan Iyanu Adelekan
Author Profile Icon Iyanu Adelekan
Iyanu Adelekan
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. The Fundamentals 2. Building an Android Application – Tetris FREE CHAPTER 3. Implementing Tetris Logic and Functionality 4. Designing and Implementing the Messenger Backend with Spring Boot 2.0 5. Building the Messenger Android App – Part I 6. Building the Messenger Android App – Part II 7. Storing Information in a Database 8. Securing and Deploying an Android App 9. Creating the Place Reviewer Backend with Spring 10. Implementing the Place Reviewer Frontend 11. Other Books You May Enjoy

Creating the user interface

As previously mentioned, the user interface is the means by which the user of an application interacts with the app. It cannot be overstated how important the user interface of an application is. Before embarking on the process of actually coding a user interface, it may be helpful to make a graphical representation of the UI to be implemented. This can be done with different tools, such as Photoshop, but for this case, a simple sketch is sufficient:

From the preceding sketch, we can see that we will need two distinct screens in this application: the landing screen and the game screen where the actual gameplay will happen. These two screens will require two separate activities. We'll call these two activities MainActivity and GameActivity.

MainActivity will serve as the entry point of our application. It will contain the user interface and all...

You have been reading a chapter from
Kotlin Programming By Example
Published in: Mar 2018
Publisher: Packt
ISBN-13: 9781788474542
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime