The EraseImageDialogFragment
does not require a layout resource as it will display a simple AlertDialog
containing text. To add class EraseImageDialogFragment
to the project:
1. Right click the package com.deitel.doodlz
in the project’s src
folder and select New > Class to display the New Java Class dialog.
2. In the Name field, enter EraseImageDialogFragment
.
3. In the Superclass field, change the superclass to android.app.DialogFragment
.
4. Click Finish to create the class.