Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)
Creating the menu Define CrimeListFragment.onCreate(Bundle) and let the FragmentManager know that CrimeListFragment needs to rec ...
Chapter 13 The Toolbar Where is the action item’s text? Most phones only have enough room for the icon in portrait orientation. ...
Responding to menu selections Responding to menu selections To respond to the user pressing the New Crime action item, you need ...
Chapter 13 The Toolbar In CrimeListFragment.java, implement onOptionsItemSelected(MenuItem) to respond to selection of the Menu ...
How hierarchical navigation works Listing 13.11 Turning on the Up button (AndroidManifest.xml) <activity android:name=".Crim ...
Chapter 13 The Toolbar An Alternative Action Item In this section, you will use what you have learned about menu resources to a ...
Toggling the action item title Listing 13.14 Responding to SHOW SUBTITLE action item (CrimeListFragment.java) @Override public ...
Chapter 13 The Toolbar Next, modify the subtitle in onCreateOptionsMenu(...) and trigger a re-creation of the action items when ...
“Just one more thing...” “Just one more thing...” Programming in Android is often like being questioned by the TV detective Colu ...
Chapter 13 The Toolbar Now that the subtitle always displays the correct number of crimes, solve the rotation issue. To fix thi ...
For the More Curious: Action Bar vs Toolbar For the More Curious: Action Bar vs Toolbar Figure 13.13 Action Bar vs Toolbar What ...
Chapter 13 The Toolbar Challenge: Plural String Resources The subtitle is not grammatically correct when there is a single crim ...
14. SQLite Databases Almost every application needs a place to save data for the long term, longer than savedInstanceState will ...
Chapter 14 SQLite Databases Defining a Schema Before you create a database, you have to decide what will be in that database. C ...
Building Your Initial Database With that, you will be able to refer to the column named “title” in a Java-safe way: CrimeTable.C ...
Chapter 14 SQLite Databases A SQLiteOpenHelper is a class designed to get rid of the grunt work of opening a SQLiteDatabase. Us ...
Building Your Initial Database Put your cursor on the word CrimeTable and key in Option+Return (Alt+Enter). Then select the firs ...
Chapter 14 SQLite Databases Exploring files using Android Device Monitor Once you have an emulator running API 23 or earlier, p ...
Exploring files using Android Device Monitor (If you try to run the app once you have disabled ADB integration, you may see the ...
Chapter 14 SQLite Databases Debugging database issues When writing code dealing with a SQLite database, you will sometimes need ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf