Android Programming The Big Nerd Ranch Guide, 3rd Edition
Minimum SDK version 117 Minimum SDK version The minSdkVersion value is a hard floor below which the OS should refuse to install ...
Chapter 6 Android SDK Versions and Compatibility 118 Adding code from later APIs safely The difference between GeoQuiz’s minimu ...
Adding code from later APIs safely 119 After you enter the code in Listing 6.2, Android Lint should immediately present you with ...
Chapter 6 Android SDK Versions and Compatibility 120 You can also run GeoQuiz on a KitKat device (virtual or otherwise). It wil ...
Using the Android Developer Documentation 121 Figure 6.2 ViewAnimationUtils reference page Scroll down, find the createCircular ...
Chapter 6 Android SDK Versions and Compatibility 122 Challenge: Reporting the Build Version Add a TextView widget to the GeoQui ...
123 7. UI Fragments and the Fragment Manager In this chapter, you will start building an application named CriminalIntent. Crimi ...
Chapter 7 UI Fragments and the Fragment Manager 124 The Need for UI Flexibility You might imagine that a list-detail applicatio ...
Introducing Fragments 125 Introducing Fragments You can get around the letter of the Android law by moving the app’s UI manageme ...
Chapter 7 UI Fragments and the Fragment Manager 126 Starting CriminalIntent In this chapter, you are going to start on the deta ...
Starting CriminalIntent 127 For now, think of hosting as the activity providing a spot in its view hierarchy where the fragment ...
Chapter 7 UI Fragments and the Fragment Manager 128 CriminalIntent will be a large project, and one way to keep your head wrapp ...
Creating a new project 129 Creating a new project Enough talk; time to build a new app. Create a new Android application (File → ...
Chapter 7 UI Fragments and the Fragment Manager 130 In the final step of the New Project wizard, name the activity CrimeActivit ...
Adding dependencies in Android Studio 131 Adding dependencies in Android Studio You will use the implementation of fragments tha ...
Chapter 7 UI Fragments and the Fragment Manager 132 Select the app module on the left and the Dependencies tab in the app modul ...
Adding dependencies in Android Studio 133 Navigate back to the editor window showing app/build.gradle, and you should now see Ap ...
Chapter 7 UI Fragments and the Fragment Manager 134 Creating the Crime class In the project tool window, right-click the com.bi ...
Creating the Crime class 135 Next, you want to generate a getter for the read-only mId and both a getter and setter for mTitle, ...
Chapter 7 UI Fragments and the Fragment Manager 136 Hosting a UI Fragment To host a UI fragment, an activity must: define a sp ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf