5.9 ColorDialogFragment
Class
Class ColorDialogFragment
(Figs. 5.43–5.47) extends DialogFragment
to create an AlertDialog
for setting the drawing color. The class’s instance variables (lines 18–23) are used to reference the GUI controls for selecting the new color, displaying a preview of it and storing the color as a 32-bit int
value that represents the color’s ARGB values.
Get Android How to Program, 3/e 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.