Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)
From Layout XML to View Objects From Layout XML to View Objects How do XML elements in activity_quiz.xml become View objects? Th ...
Chapter 1 Your First Android Application Resources and resource IDs A layout is a resource. A resource is a piece of your appli ...
Resources and resource IDs Listing 1.5 Current GeoQuiz resource IDs (R.java) /* AUTO-GENERATED FILE. DO NOT MODIFY. This cla ...
Chapter 1 Your First Android Application Your strings also have resource IDs. You have not yet referred to a string in code, bu ...
Wiring Up Widgets Wiring Up Widgets Now that the buttons have resource IDs, you can access them in QuizActivity. The first step ...
Chapter 1 Your First Android Application Getting references to widgets In an activity, you can get a reference to an inflated w ...
Setting listeners Setting listeners Android applications are typically event driven. Unlike command-line programs or scripts, ev ...
Chapter 1 Your First Android Application Using anonymous inner classes This listener is implemented as an anonymous inner class ...
Making Toasts Making Toasts Now to make the buttons fully armed and operational. You are going to have a press of each button tr ...
Chapter 1 Your First Android Application The Context parameter is typically an instance of Activity (Activity is a subclass of ...
Running on the Emulator Running on the Emulator To run an Android application, you need a device – either a hardware device or a ...
Chapter 1 Your First Android Application On the next screen, choose a system image that your emulator is based on. For this emu ...
Running on the Emulator Figure 1.17 Updating emulator properties Once you have an AVD, you can run GeoQuiz on it. From the Andr ...
Chapter 1 Your First Android Application Keep the emulator running – you do not want to wait for it to launch on every run. You ...
Android build tools (You can also create your view classes programmatically in the activity instead of defining them in XML. But ...
Chapter 1 Your First Android Application Challenges Challenges are exercises at the end of the chapter for you to do on your ow ...
2 Android and Model-View- Controller In this chapter, you are going to upgrade GeoQuiz to present more than one question, as sho ...
Chapter 2 Android and Model-View-Controller Creating a New Class In the project tool window, right-click the com.bignerdranch.a ...
Generating getters and setters Generating getters and setters The first step is to configure Android Studio to recognize the m p ...
Chapter 2 Android and Model-View-Controller Listing 2.2 Generated getters and setters (Question.java) public class Question { ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf