Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)
Editing properties After adding the constraints, adjust the properties of the TextView. You want the width of your date TextView ...
Chapter 9 Creating User Interfaces with Layouts and Widgets Run CriminalIntent and verify that you see all three components lin ...
Making list items dynamic Making list items dynamic Now that the layout includes the right constraints, update the ImageView so ...
Chapter 9 Creating User Interfaces with Layouts and Widgets More on Layout Attributes Let’s add a few more tweaks to the design ...
Screen pixel densities and dp and sp Figure 9.28 Dimension units in action on TextView px Short for pixel. One pixel correspond ...
Chapter 9 Creating User Interfaces with Layouts and Widgets Margins vs padding In both GeoQuiz and CriminalIntent, you have giv ...
Styles, themes, and theme attributes Styles, themes, and theme attributes A style is an XML resource that contains attributes th ...
Chapter 9 Creating User Interfaces with Layouts and Widgets Android’s design guidelines Notice that for your margins, Android S ...
10. Using Fragment Arguments In this chapter, you will get the list and the detail parts of CriminalIntent working together. Whe ...
Chapter 10 Using Fragment Arguments Here CrimeListFragment creates an explicit intent that names the CrimeActivity class. Crime ...
Putting an extra Putting an extra You can tell CrimeFragment which Crime to display by passing the crime ID as an Intent extra w ...
Chapter 10 Using Fragment Arguments Listing 10.4 Retrieving the extra and fetching the Crime (CrimeFragment.java) public class ...
The downside to direct retrieval Run CriminalIntent. Select Crime #4 and watch a CrimeFragment instance with the correct crime d ...
Chapter 10 Using Fragment Arguments Fragment Arguments Every fragment instance can have a Bundle object attached to it. This bu ...
Retrieving arguments You can now also make EXTRA_CRIME_ID private, because no other class will access that extra. Listing 10.7 ...
Chapter 10 Using Fragment Arguments Reloading the List There is one more detail to take care of. Run CriminalIntent, press a li ...
Reloading the List In CrimeListFragment, override onResume() and trigger a call to updateUI() to reload the list. Modify the upd ...
Chapter 10 Using Fragment Arguments You have made progress with CriminalIntent in the last two chapters. Let’s take a look at a ...
Getting Results with Fragments Getting Results with Fragments In this chapter, you did not need a result back from the started a ...
Chapter 10 Using Fragment Arguments For the More Curious: Why Use Fragment Arguments? This all seems so complicated. Why not ju ...
«
7
8
9
10
11
12
13
14
15
16
»
Free download pdf