Android CS323 Cornez

Lab 5

Drawing



Exercise


    This exercise allows you to experiment with the concept of layering elements, including drawn elements, onto an existing layout. This will be done programmatically, as well as with an XML layout. Recursive drawing should be used to construct a well-recognized fractal pattern, known as the C-curve. Research the algorithm for this curve.

    The C-curve fractal is a geometric pattern that can be subdivided into many smaller imitations, self-similar copies of the larger pattern. If you enlarge any small portion of the complete fractal, it will have the same structure as the larger complete work. The image below shows several screenshots of a sample C-curve app.

    When the application launches, the user will see a "number stepper". This ui control will allow the user to select a C-curve level, which determines the complexity of the final design. You will need to create the number stepper.