March 2013
Beginner to intermediate
580 pages
16h 11m
English
Here is what CrimeFragment’s view will look like by the end of this chapter.
Figure 8.1 CriminalIntent, episode 2

To get this on screen, you are going to add four widgets to CrimeFragment’s layout: two TextView widgets, a Button, and a CheckBox.
Open fragment_crime.xml and make the changes shown in Listing 8.3. You may get errors from missing string resources that you will create in a moment.
Listing 8.3 Adding new widgets (fragment_crime.xml)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" ...
Read now
Unlock full access