Time for action - finishing the CircleLayout example
We've got the
CicleLayout implementation, but we should really include it in our "layouts" example now. To do that we'll need a layout resource XML file, a new
CircleLayoutActivity class. We also need to register the new
Activity with both, Android (in the manifest file), and with our
LayoutSelectorActivity class (in its event listener).
- Copy the preceding XML layout into a new file named
res/layout/circle_layout.xml. It works best with around ten widgets added as children of the
- Create a new Java source file in the root package of your project named
CircleLayoutActivity.java. Open this in your editor or IDE.
CircleLayoutActivitymust extend the
public class ...