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).

  1. 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 CircleLayout ViewGroup.
  2. Create a new Java source file in the root package of your project named CircleLayoutActivity.java. Open this in your editor or IDE.
  3. CircleLayoutActivity must extend the Activity class:
    public class ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.