Build an Interactive Story App

Treehouse
Course Summary
In this course we will build a simple choose-your-own-adventure story app, complete with fantastic illustrations. We will model our story and introduce the Model-View-Presenter pattern, and we will learn about getting input from users, displaying images, and using more than one Activity.
-
+
Course Description
About this Course In this course we will build a simple choose-your-own-adventure story app, complete with fantastic illustrations. We will model our story and introduce the Model-View-Presenter pattern, and we will learn about getting input from users, displaying images, and using more than one Activity. What you'll learn
- Displaying images in an ImageView
- Getting input from an EditText
- Starting Activities with Intents
- Passing data between Activities
- Using the MVP design pattern
About the Teacher
Ben is a father, husband, son, friend, and teacher. He is firmly committed to the belief that the world is evolving to a better place. Find him on Twitter @benjakuben.
-
+
Course Syllabus
User Input
We need to be able to get input from users for our apps. In this stage we'll introduce the EditText view, which is used for entering and editing text input. We will also introduce a new layout for Android called ConstraintLayout. 8 steps- Introducing the Project 1:51
- Finding Views by IDs 1 objective
- Creating the Project 5:37
- Introducing ImageViews 6:38
- Using Images 6 questions
- Introducing ConstraintLayout 5:33
- Using EditText for Text Input 7:05
- Using ConstraintLayouts and ImageViews 4 objectives
- Extra Credit User Input BonanzaWe learned how to get data from an EditText, which is really important. It also applies to all sorts of widgets used for user input.Create a simple app that has a bunch of different controls from the Widgets section in the Palette. For each control, get the value the user enters and then display it in the log or a Toast. Getting comfortable with the different widgets will cement your learning and expose you to different controls.Some specific ones to try include:
- EditText with a different format
- RadioButton
- CheckBox
- Switch
- ToggleButton
- Spinner
Tuning the User Interface
Android apps need to work on different screen sizes, different versions of Android, and sometimes, in different orientations. We'll talk about each of these and how to use the AppCompat library to keep things consistent across many devices. 6 stepsIntents and Multiple Activities
Intents are objects that we use when we intend to do something in Android, like start a new Activity or use the camera. In this stage we'll learn how to use them to navigate to a new Activity, including passing data as an Intent extra. We'll also take a look at string resources and how to be more mindful of text in our apps. 13 stepsThe Model-View-Presenter Pattern
The Model-View-Presenter software design pattern allows us to architect apps in a way that makes them easier to maintain and understand. We will talk about how this pattern can be used in Android development and why it will help us. 10 stepsFinishing the User Interface
With a fully implemented data model, we are finally ready to display our story in the app! 8 stepsThe Rest of the Story
Our one page story needs more! In this final stage we will dynamically update the story pages and add some app navigation. 9 steps