7.3.9. Adding Class EraseImageDialogFragment
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.
Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.