December 2015
Beginner
698 pages
15h 16m
English
Now that we have a design for both our dialog windows (show note and new note), we can use what we know about the FragmentDialog class to implement a class that represents each of the dialog windows that the user can interact with.
We will start with the new note screen.
Create a new class by right-clicking on the project folder that contains all the .java files and choose Java class under New. Name the class DialogNewNote.
First, change the class declaration and extend DialogFragment. Also, override the onCreateDialog method, which is where all the rest of the code in this class will go:
public class DialogNewNote extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) ...Read now
Unlock full access