January 2014
Intermediate to advanced
736 pages
70h 43m
English
The fragment_doodle.xml layout for the DoodleFragment contains a FrameLayout that displays the DoodleView. In this section, you’ll create DoodleFragment’s layout and the DoodleView class. To add the fragment_doodle.xml layout:
1. Expand the project’s res/layout node in the Package Explorer.
2. Right click the layout folder and select New > Android XML File to display the New Android XML File dialog.
3. In the dialog’s File field, enter fragment_doodle.xml
4. In the Root Element section, select FrameLayout, then click Finish.
5. From the Palette’s Advanced section, drag a view (with a lowercase v) onto the GUI.
6. The previous step displays the Choose Custom View Class dialog. In that dialog, ...
Read now
Unlock full access